org.jtheque.core.managers.schema
Interface Schema


public interface Schema

A Schema of database.

Author:
Baptiste Wicht

Method Summary
 java.lang.String getName()
          Return the name of the schema.
 org.jtheque.utils.bean.Version getVersion()
          Return the version of the schema.
 void importDataFromHSQL(java.lang.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.
 

Method Detail

getVersion

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

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

getName

java.lang.String getName()
Return the name of the schema.

Returns:
The name 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(java.lang.Iterable<Insert> inserts)
Import data from HSQL.

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


Copyright © 2009 JTheque. All Rights Reserved.