de.greenrobot.daogenerator
Class Schema

java.lang.Object
  extended by 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)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Schema

public Schema(int version,
              java.lang.String defaultJavaPackage)
Method Detail

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.