de.greenrobot.daogenerator
Class Schema
java.lang.Object
de.greenrobot.daogenerator.Schema
-
public class Schema
- extends java.lang.Object
-
The "root" model class to which you can add entities to.
- See Also:
- Modelling Entities (Documentation page)
Constructor Summary |
Schema(int version, java.lang.String defaultJavaPackage)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Schema
public Schema(int version,
java.lang.String defaultJavaPackage)
enableKeepSectionsByDefault
public void enableKeepSectionsByDefault()
-
enableActiveEntitiesByDefault
public void enableActiveEntitiesByDefault()
-
addEntity
public Entity addEntity(java.lang.String className)
-
Adds a new entity to the schema. There can be multiple entities per table, but only one may be the primary entity per table to create table scripts, etc.
-
addProtobufEntity
public Entity addProtobufEntity(java.lang.String className)
-
Adds a new protocol buffers entity to the schema. There can be multiple entities per table, but only one may be the primary entity per table to create table scripts, etc.
-
mapToDbType
public java.lang.String mapToDbType(PropertyType propertyType)
-
mapToJavaTypeNullable
public java.lang.String mapToJavaTypeNullable(PropertyType propertyType)
-
mapToJavaTypeNotNull
public java.lang.String mapToJavaTypeNotNull(PropertyType propertyType)
-
getVersion
public int getVersion()
-
getDefaultJavaPackage
public java.lang.String getDefaultJavaPackage()
-
getDefaultJavaPackageDao
public java.lang.String getDefaultJavaPackageDao()
-
setDefaultJavaPackageDao
public void setDefaultJavaPackageDao(java.lang.String defaultJavaPackageDao)
-
getDefaultJavaPackageTest
public java.lang.String getDefaultJavaPackageTest()
-
setDefaultJavaPackageTest
public void setDefaultJavaPackageTest(java.lang.String defaultJavaPackageTest)
-
getEntities
public java.util.List<Entity> getEntities()
-
isHasKeepSectionsByDefault
public boolean isHasKeepSectionsByDefault()
-
isUseActiveEntitiesByDefault
public boolean isUseActiveEntitiesByDefault()
-
Copyright © 2011-2012 greenrobot.de. All Rights Reserved.