@Test public void testSchema() throws Exception { dumpSetNames( "application" ); dumpSetNames( "user" ); dumpSetNames( "thing" ); }
public Schema() { setDefaultSchema( this ); mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false ); }
Schema implements SchemaManager { public Schema() { setDefaultSchema( this ); mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false ); } }
Schema implements SchemaManager { public Schema() { setDefaultSchema( this ); mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false ); } Schema(); }
Schema implements SchemaManager { public Schema() { setDefaultSchema( this ); mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false ); } Schema(); static void setDefaultSchema( Schema instance ); static Schema getDefaultSchema(); void mapCollector( String entityType, String containerType, String collectionName,
                              CollectionInfo collection ); synchronized void registerEntity( Class<? extends Entity> entityClass ); synchronized void init(); @SuppressWarnings("unchecked") void scanEntities(); void addEntitiesPackage( String entityPackage ); void removeEntitiesPackage( String entityPackage ); @SuppressWarnings("unchecked") List<String> getEntitiesPackage(); Map<String, PropertyInfo> getAllIndexedProperties(); Set<String> getAllIndexedPropertyNames(); Set<String> getAllPropertyNames(); String[] getAllPropertyNamesAsArray(); EntityInfo getEntityInfo( String entityType ); JsonNode getEntityJsonSchema( String entityType ); String getEntityType( Class<? extends Entity> cls ); Class<? extends Entity> getEntityClass( String type ); boolean hasProperties( String entityType ); Set<String> getPropertyNames( String entityType ); String[] getPropertyNamesAsArray( String entityType ); boolean hasProperty( String entityType, String propertyName ); String aliasProperty( String entityType ); @Override boolean isPropertyMutable(String entityType, String propertyName); @Override boolean isPropertyUnique(String entityType, String propertyName); @Override boolean isPropertyIndexed(String entityType, String propertyName); @Override boolean isPropertyFulltextIndexed(String entityType, String propertyName); @Override boolean isPropertyTimestamp(String entityType, String propertyName); Set<String> getRequiredProperties( String entityType ); boolean isRequiredProperty( String entityType, String propertyName ); Class<?> getPropertyType( String entityType, String propertyName ); boolean isPropertyIndexedInCollection( String containerType, String collectionName, String propertyName ); boolean hasDictionaries( String entityType ); Set<String> getDictionaryNames( String entityType ); boolean hasDictionary( String entityType, String dictionaryName ); Class<?> getDictionaryKeyType( String entityType, String dictionaryName ); Class<?> getDictionaryValueType( String entityType, String dictionaryName ); boolean isDictionaryIndexedInConnections( String entityType, String dictionaryName ); boolean isDictionaryIndexedInCollection( String containerType, String collectionName,
                                                    String dictionaryName ); boolean hasCollection( String containerType, String collectionName ); boolean isCollectionPathBased( String containerType, String collectionName ); boolean isCollectionReversed( String containerType, String collectionName ); String getCollectionSort( String containerType, String collectionName ); CollectionInfo getCollection( String containerType, String collectionName ); String getCollectionType( String containerType, String collectionName ); Map<String, CollectionInfo> getCollections( String entityType ); Set<String> getCollectionNames( String entityType ); java.util.List<String> getCollectionNamesAsList( String entityType ); Map<String, Set<CollectionInfo>> getContainers( String entityType ); CollectionInfo getContainerCollectionLinkedToCollection( String containerType, String collectionName ); Map<String, Set<CollectionInfo>> getContainersIndexingProperties( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingDictionaries( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingDynamicSetInfos( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingProperty( String entityType, String propertyName ); Map<String, Set<CollectionInfo>> getContainersIndexingDictionary( String entityType,
                                                                             String dictionaryName ); static String defaultCollectionName( String entityType ); static String normalizeEntityType( String entityType ); static String getAssociatedEntityType( String entityType ); static String normalizeEntityType( String entityType, boolean baseType ); static boolean isAssociatedEntityType( String entityType ); EntityInfo getDynamicEntityInfo( String entityType ); Map<String, Object> cleanUpdatedProperties( String entityType, Map<String, Object> properties ); Map<String, Object> cleanUpdatedProperties( String entityType, Map<String, Object> properties,
                                                       boolean create ); Object validateEntityPropertyValue( String entityType, String propertyName, Object propertyValue ); Object validateEntitySetValue( String entityType, String dictionaryName, Object elementValue ); Entity toEntity( Map<String, Object> map ); Map<String, Object> toMap( Entity entity ); Object convertToPropertyType( Class<? extends Entity> entityClass, String property, Object value ); Object convertToPropertyType( String type, String property, Object value ); PropertyDescriptor getDescriptorForEntityProperty( Class<? extends Entity> entityClass, String property ); void setEntityProperty( Entity entity, String property, Object value ); Object getEntityProperty( Entity entity, String property ); Map<String, Object> getEntityProperties( Entity entity ); static Map<String, Object> deserializeEntityProperties( Row<UUID, String, ByteBuffer> row ); static Map<String, Object> deserializeEntityProperties( List<HColumn<String, ByteBuffer>> columns ); static Map<String, Object> deserializeEntityProperties( Map<String, ByteBuffer> columns ); static Map<String, Object> deserializeEntityProperties( List<HColumn<String, ByteBuffer>> columns,
                                                                   boolean checkId, boolean checkRequired ); static Map<String, Object> deserializeEntityProperties( Map<String, ByteBuffer> columns, boolean checkId,
                                                                   boolean checkRequired ); static Object deserializeEntityProperty( String entityType, String propertyName, ByteBuffer bytes ); static ByteBuffer serializeEntityProperty( String entityType, String propertyName, Object propertyValue ); static ByteBuffer serializePropertyValueToJsonBinary( Object obj ); static Object deserializePropertyValueFromJsonBinary( ByteBuffer bytes ); static Object deserializePropertyValueFromJsonBinary( ByteBuffer bytes, Class<?> classType ); boolean isPropertyEncrypted( String entityType, String propertyName ); static ByteBuffer encrypt( ByteBuffer clear ); static ByteBuffer decrypt( ByteBuffer encrypted ); }
Schema implements SchemaManager { public Schema() { setDefaultSchema( this ); mapper.configure( SerializationFeature.WRITE_DATES_AS_TIMESTAMPS,false ); } Schema(); static void setDefaultSchema( Schema instance ); static Schema getDefaultSchema(); void mapCollector( String entityType, String containerType, String collectionName,
                              CollectionInfo collection ); synchronized void registerEntity( Class<? extends Entity> entityClass ); synchronized void init(); @SuppressWarnings("unchecked") void scanEntities(); void addEntitiesPackage( String entityPackage ); void removeEntitiesPackage( String entityPackage ); @SuppressWarnings("unchecked") List<String> getEntitiesPackage(); Map<String, PropertyInfo> getAllIndexedProperties(); Set<String> getAllIndexedPropertyNames(); Set<String> getAllPropertyNames(); String[] getAllPropertyNamesAsArray(); EntityInfo getEntityInfo( String entityType ); JsonNode getEntityJsonSchema( String entityType ); String getEntityType( Class<? extends Entity> cls ); Class<? extends Entity> getEntityClass( String type ); boolean hasProperties( String entityType ); Set<String> getPropertyNames( String entityType ); String[] getPropertyNamesAsArray( String entityType ); boolean hasProperty( String entityType, String propertyName ); String aliasProperty( String entityType ); @Override boolean isPropertyMutable(String entityType, String propertyName); @Override boolean isPropertyUnique(String entityType, String propertyName); @Override boolean isPropertyIndexed(String entityType, String propertyName); @Override boolean isPropertyFulltextIndexed(String entityType, String propertyName); @Override boolean isPropertyTimestamp(String entityType, String propertyName); Set<String> getRequiredProperties( String entityType ); boolean isRequiredProperty( String entityType, String propertyName ); Class<?> getPropertyType( String entityType, String propertyName ); boolean isPropertyIndexedInCollection( String containerType, String collectionName, String propertyName ); boolean hasDictionaries( String entityType ); Set<String> getDictionaryNames( String entityType ); boolean hasDictionary( String entityType, String dictionaryName ); Class<?> getDictionaryKeyType( String entityType, String dictionaryName ); Class<?> getDictionaryValueType( String entityType, String dictionaryName ); boolean isDictionaryIndexedInConnections( String entityType, String dictionaryName ); boolean isDictionaryIndexedInCollection( String containerType, String collectionName,
                                                    String dictionaryName ); boolean hasCollection( String containerType, String collectionName ); boolean isCollectionPathBased( String containerType, String collectionName ); boolean isCollectionReversed( String containerType, String collectionName ); String getCollectionSort( String containerType, String collectionName ); CollectionInfo getCollection( String containerType, String collectionName ); String getCollectionType( String containerType, String collectionName ); Map<String, CollectionInfo> getCollections( String entityType ); Set<String> getCollectionNames( String entityType ); java.util.List<String> getCollectionNamesAsList( String entityType ); Map<String, Set<CollectionInfo>> getContainers( String entityType ); CollectionInfo getContainerCollectionLinkedToCollection( String containerType, String collectionName ); Map<String, Set<CollectionInfo>> getContainersIndexingProperties( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingDictionaries( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingDynamicSetInfos( String entityType ); Map<String, Set<CollectionInfo>> getContainersIndexingProperty( String entityType, String propertyName ); Map<String, Set<CollectionInfo>> getContainersIndexingDictionary( String entityType,
                                                                             String dictionaryName ); static String defaultCollectionName( String entityType ); static String normalizeEntityType( String entityType ); static String getAssociatedEntityType( String entityType ); static String normalizeEntityType( String entityType, boolean baseType ); static boolean isAssociatedEntityType( String entityType ); EntityInfo getDynamicEntityInfo( String entityType ); Map<String, Object> cleanUpdatedProperties( String entityType, Map<String, Object> properties ); Map<String, Object> cleanUpdatedProperties( String entityType, Map<String, Object> properties,
                                                       boolean create ); Object validateEntityPropertyValue( String entityType, String propertyName, Object propertyValue ); Object validateEntitySetValue( String entityType, String dictionaryName, Object elementValue ); Entity toEntity( Map<String, Object> map ); Map<String, Object> toMap( Entity entity ); Object convertToPropertyType( Class<? extends Entity> entityClass, String property, Object value ); Object convertToPropertyType( String type, String property, Object value ); PropertyDescriptor getDescriptorForEntityProperty( Class<? extends Entity> entityClass, String property ); void setEntityProperty( Entity entity, String property, Object value ); Object getEntityProperty( Entity entity, String property ); Map<String, Object> getEntityProperties( Entity entity ); static Map<String, Object> deserializeEntityProperties( Row<UUID, String, ByteBuffer> row ); static Map<String, Object> deserializeEntityProperties( List<HColumn<String, ByteBuffer>> columns ); static Map<String, Object> deserializeEntityProperties( Map<String, ByteBuffer> columns ); static Map<String, Object> deserializeEntityProperties( List<HColumn<String, ByteBuffer>> columns,
                                                                   boolean checkId, boolean checkRequired ); static Map<String, Object> deserializeEntityProperties( Map<String, ByteBuffer> columns, boolean checkId,
                                                                   boolean checkRequired ); static Object deserializeEntityProperty( String entityType, String propertyName, ByteBuffer bytes ); static ByteBuffer serializeEntityProperty( String entityType, String propertyName, Object propertyValue ); static ByteBuffer serializePropertyValueToJsonBinary( Object obj ); static Object deserializePropertyValueFromJsonBinary( ByteBuffer bytes ); static Object deserializePropertyValueFromJsonBinary( ByteBuffer bytes, Class<?> classType ); boolean isPropertyEncrypted( String entityType, String propertyName ); static ByteBuffer encrypt( ByteBuffer clear ); static ByteBuffer decrypt( ByteBuffer encrypted ); static final String DEFAULT_ENTITIES_PACKAGE; static final String TYPE_APPLICATION; static final String TYPE_ENTITY; static final String TYPE_ROLE; static final String TYPE_CONNECTION; static final String TYPE_MEMBER; static final String PROPERTY_ACTIVATED; static final String PROPERTY_COLLECTION_NAME; static final String PROPERTY_CREATED; static final String PROPERTY_CONFIRMED; static final String PROPERTY_DISABLED; static final String PROPERTY_ADMIN; static final String PROPERTY_UUID; static final String PROPERTY_EMAIL; static final String PROPERTY_ITEM; static final String PROPERTY_ITEM_TYPE; static final String PROPERTY_MEMBERSHIP; static final String PROPERTY_METADATA; static final String PROPERTY_MODIFIED; static final String PROPERTY_NAME; static final String PROPERTY_OWNER; static final String PROPERTY_OWNER_TYPE; static final String PROPERTY_PATH; static final String PROPERTY_PICTURE; static final String PROPERTY_PUBLISHED; static final String PROPERTY_SECRET; static final String PROPERTY_TIMESTAMP; static final String PROPERTY_TITLE; static final String PROPERTY_TYPE; static final String PROPERTY_URI; static final String PROPERTY_USERNAME; static final String PROPERTY_INACTIVITY; static final String PROPERTY_CONNECTION; static final String PROPERTY_ASSOCIATED; static final String PROPERTY_CURSOR; static final String COLLECTION_ROLES; static final String COLLECTION_USERS; static final String COLLECTION_GROUPS; static final String INDEX_COLLECTIONS; static final String INDEX_CONNECTIONS; static final String DICTIONARY_PROPERTIES; static final String DICTIONARY_SETS; static final String DICTIONARY_COLLECTIONS; static final String DICTIONARY_CONNECTIONS; static final String DICTIONARY_INDEXES; static final String DICTIONARY_CONNECTING_TYPES; static final String DICTIONARY_CONNECTING_ENTITIES; static final String DICTIONARY_CONNECTED_TYPES; static final String DICTIONARY_CONNECTED_ENTITIES; static final String DICTIONARY_CONTAINER_ENTITIES; static final String DICTIONARY_CREDENTIALS; static final String DICTIONARY_ROLENAMES; static final String DICTIONARY_ROLETIMES; static final String DICTIONARY_PERMISSIONS; static final String DICTIONARY_ID_SETS; static final String DICTIONARY_COUNTERS; static final String DICTIONARY_GEOCELL; @SuppressWarnings("rawtypes")
    static Map<String, Class> DEFAULT_DICTIONARIES; static final Object initLock; }