public class Schema
extends java.lang.Object
Constructor and Description |
---|
Schema(int version,
java.lang.String defaultJavaPackage) |
Modifier and Type | Method and Description |
---|---|
Entity |
addEntity(java.lang.String className)
Adds a new entity to the schema.
|
Entity |
addProtobufEntity(java.lang.String className)
Adds a new protocol buffers entity to the schema.
|
void |
enableActiveEntitiesByDefault() |
void |
enableKeepSectionsByDefault() |
java.lang.String |
getDefaultJavaPackage() |
java.lang.String |
getDefaultJavaPackageDao() |
java.lang.String |
getDefaultJavaPackageTest() |
java.util.List<Entity> |
getEntities() |
int |
getVersion() |
boolean |
isHasKeepSectionsByDefault() |
boolean |
isUseActiveEntitiesByDefault() |
java.lang.String |
mapToDbType(PropertyType propertyType) |
java.lang.String |
mapToJavaTypeNotNull(PropertyType propertyType) |
java.lang.String |
mapToJavaTypeNullable(PropertyType propertyType) |
void |
setDefaultJavaPackageDao(java.lang.String defaultJavaPackageDao) |
void |
setDefaultJavaPackageTest(java.lang.String defaultJavaPackageTest) |
public void enableKeepSectionsByDefault()
public void enableActiveEntitiesByDefault()
public Entity addEntity(java.lang.String className)
public Entity addProtobufEntity(java.lang.String className)
public java.lang.String mapToDbType(PropertyType propertyType)
public java.lang.String mapToJavaTypeNullable(PropertyType propertyType)
public java.lang.String mapToJavaTypeNotNull(PropertyType propertyType)
public int getVersion()
public java.lang.String getDefaultJavaPackage()
public java.lang.String getDefaultJavaPackageDao()
public void setDefaultJavaPackageDao(java.lang.String defaultJavaPackageDao)
public java.lang.String getDefaultJavaPackageTest()
public void setDefaultJavaPackageTest(java.lang.String defaultJavaPackageTest)
public java.util.List<Entity> getEntities()
public boolean isHasKeepSectionsByDefault()
public boolean isUseActiveEntitiesByDefault()
Available under the GPLv3 - Copyright © 2011-2015 greenrobot.de. All Rights Reserved.