org.caleigo.core.service
Class DemoDataService
java.lang.Object
org.caleigo.core.AbstractDataService
org.caleigo.core.service.JDBCDataService
org.caleigo.core.service.DemoDataService
- All Implemented Interfaces:
- IDataService, IDistributable, ISecureService, IService, java.io.Serializable
- public class DemoDataService
- extends JDBCDataService
- Author:
- Klas Ehnrot
DataService used only for Demo databases that is read from a URL, and put into Memory
- See Also:
- Serialized Form
Constructor Summary |
DemoDataService(IDataSourceDescriptor descriptor)
Creates empty Demo Database |
DemoDataService(IDataSourceDescriptor descriptor,
java.io.File hsqldbDir,
java.lang.String dbName)
Creates the Demo Database and copy data from the supplied HSQLDB database. |
DemoDataService(IDataSourceDescriptor descriptor,
java.net.URL databaseURL)
Creates the Demo Database and copy data from the supplied URL
The File pointed out by the URL should contain CREATE, INSERT and
ALTER TABLE commands, and they will be run in the memory database |
Method Summary |
static void |
main(java.lang.String[] args)
|
protected static java.lang.String |
translateEscapeCodes(java.lang.String text)
Help method that translates escape codes like "c" to their real
characters. |
Methods inherited from class org.caleigo.core.service.JDBCDataService |
closeConnection, executeCreateRelation, executeCreateTable, executeDelete, executeInsert, executeLoad, executeQuery, executeUpdate, getPassword, getSetData, getSQLToolKit, getURL, getUser, hasAutoIndexField, newTransaction, openConnection, ping, readResultSetRow, setCalculateQuerySize, setDriver, setMaxConnectionPoolSize, setSQLToolKit, updateAutoIndex |
Methods inherited from class org.caleigo.core.AbstractDataService |
checkEntityAsDeletable, checkEntityAsStorable, delete, finalizeService, getCustomProxyService, getDataSourceDescriptor, getServiceIdentity, getServiceInterface, getServiceInterfaceClass, getServiceType, getTimeout, hasCustomProxyService, initializeService, isValidating, load, loadSelection, loadSelection, refresh, setEntityData, setTimeout, setValidating, store |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DemoDataService
public DemoDataService(IDataSourceDescriptor descriptor)
- Creates empty Demo Database
- Parameters:
descriptor
- descriptor
DemoDataService
public DemoDataService(IDataSourceDescriptor descriptor,
java.net.URL databaseURL)
- Creates the Demo Database and copy data from the supplied URL
The File pointed out by the URL should contain CREATE, INSERT and
ALTER TABLE commands, and they will be run in the memory database
- Parameters:
descriptor
-
DemoDataService
public DemoDataService(IDataSourceDescriptor descriptor,
java.io.File hsqldbDir,
java.lang.String dbName)
- Creates the Demo Database and copy data from the supplied HSQLDB database.
- Parameters:
descriptor
- hsqldbDir
- the directory containing the hsqldb database from which
data should be copied.dbName
- the name of the hsqldb database.
main
public static void main(java.lang.String[] args)
translateEscapeCodes
protected static java.lang.String translateEscapeCodes(java.lang.String text)
- Help method that translates escape codes like "c" to their real
characters.
Copyright © 2005 Caleigo. All Rights Reserved.