| Package | Description | 
|---|---|
| io.stallion.dataAccess | |
| io.stallion.dataAccess.db | |
| io.stallion.dataAccess.file | 
| Modifier and Type | Method and Description | 
|---|---|
| DataAccessRegistration | DataAccessRegistration. build(String appTargetPath)Ensure all required fields are set and valid, hydrate any other fields with
 defaults. | 
| DataAccessRegistration | DataAccessRegistration. setBucket(String bucket)The bucket is the shorthand by which the controller will be accessed from templates,
 from DalRegistry.get(), etc. | 
| DataAccessRegistration | DataAccessRegistration. setControllerClass(Class<? extends ModelController> controllerClass)The ModelController subclass to be associated with this registration | 
| DataAccessRegistration | DataAccessRegistration. setDatabaseBacked(boolean databaseBacked)True if the registration should use the database, false if it should use the
 file system. | 
| DataAccessRegistration | DataAccessRegistration. setDynamicModelDefinition(DynamicModelDefinition dynamicModelDefinition)Used for defining a model via Javascript | 
| DataAccessRegistration | DataAccessRegistration. setItemArrayName(String itemArrayName)If isMultiplePerFile() is true, this is the name of the array of the objects. | 
| DataAccessRegistration | DataAccessRegistration. setModelClass(Class<? extends Model> modelClass)The data model to be used with this registration | 
| DataAccessRegistration | DataAccessRegistration. setMultiplePerFile(boolean multiplePerFile)True for file-based data stores if there are multiple objects per file, instead of one file per object | 
| DataAccessRegistration | DataAccessRegistration. setNameSpace(String nameSpace) | 
| DataAccessRegistration | DataAccessRegistration. setPath(String path)For file based registrations, the path to the folder with the data. | 
| DataAccessRegistration | DataAccessRegistration. setPersisterClass(Class<? extends Persister> persisterClass)The Persister subclass to use for this registration | 
| DataAccessRegistration | DataAccessRegistration. setShouldWatch(boolean shouldWatch)Should the file system be watched for changes, and reload changes automatically? | 
| DataAccessRegistration | DataAccessRegistration. setStashClass(Class<? extends Stash> stashClass) | 
| DataAccessRegistration | DataAccessRegistration. setSyncAllToMemory(boolean syncAllToMemory)Should all objects from the data store be synced to local memory? Defaults to true. | 
| DataAccessRegistration | DataAccessRegistration. setTableName(String tableName)The database table for the data, for DB backed registrations | 
| DataAccessRegistration | DataAccessRegistration. setTemplatePath(String templatePath)For displayable registrations, the default template to use for rendering the object. | 
| DataAccessRegistration | DataAccessRegistration. setUseDataFolder(boolean useDataFolder)If true, relative path will be relative to the app-data folder, not the project folder. | 
| DataAccessRegistration | DataAccessRegistration. setWritable(boolean writable)Is Stallion allowed to write to the datastore, or is it read only? | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Stash. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Persister<T> persister)Initialized the Stash with required attributes, this is
 called via dataAccess registration. | 
| void | PartialStash. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Persister<T> persister) | 
| void | LocalMemoryStash. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Persister<T> persister) | 
| void | Persister. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Stash<T> stash)Initialize the persister, called during DalRegistery.register | 
| void | BasePersister. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Stash<T> stash) | 
| void | StandardModelController. init(DataAccessRegistration registration,
    Persister<T> persister,
    Stash<T> stash) | 
| void | ReadOnlyWrapper. init(DataAccessRegistration registration,
    Persister<T> persister,
    Stash<T> stash) | 
| void | ModelController. init(DataAccessRegistration registration,
    Persister<T> persister,
    Stash<T> stash)Initialize the controller, loading all the key fields, setting defaults,
 initializing key variables, etc. | 
| protected void | StandardModelController. postInitialize(DataAccessRegistration registration) | 
| protected void | StandardModelController. preInitialize(DataAccessRegistration registration) | 
| protected void | DisplayableModelController. preInitialize(DataAccessRegistration registration) | 
| ModelController | DataAccessRegistry. register(DataAccessRegistration registration)Registers the data store defined by the passed in DalRegistration. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DbPersister. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Stash<T> stash) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | FilePersisterBase. init(DataAccessRegistration registration,
    ModelController<T> controller,
    Stash<T> stash) | 
Copyright © 2016. All rights reserved.