org.jtheque.core.managers.schema
Interface Schema

All Superinterfaces:
Comparable<Schema>
All Known Implementing Classes:
AbstractSchema

public interface Schema
extends Comparable<Schema>

A Schema of database.

Author:
Baptiste Wicht

Method Summary
 String[] getDependencies()
          Return all the dependencies of the schema.
 String getId()
          Return the name of the schema.
 org.jtheque.utils.bean.Version getVersion()
          Return the version of the schema.
 void importDataFromHSQL(Iterable<Insert> inserts)
          Import data from HSQL.
 void install()
          Install the schema.
 void update(org.jtheque.utils.bean.Version from)
          Update the schema from an another version.
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Method Detail

getVersion

org.jtheque.utils.bean.Version getVersion()
Return the version of the schema.

Returns:
The version of the schema.
See Also:
Version

getId

String getId()
Return the name of the schema.

Returns:
The name of the schema.

getDependencies

String[] getDependencies()
Return all the dependencies of the schema.

Returns:
An array containing all the dependencies of the schema.

install

void install()
Install the schema. It seems nothing was already installed.


update

void update(org.jtheque.utils.bean.Version from)
Update the schema from an another version.

Parameters:
from - The installed version.
See Also:
Version

importDataFromHSQL

void importDataFromHSQL(Iterable<Insert> inserts)
Import data from HSQL.

Parameters:
inserts - All the inserts of HSQL.
See Also:
Insert


Copyright © 2010 JTheque. All Rights Reserved.