Method Summary |
|
public String | adaptCase(String identifier) Changes to lowercase or uppercase if needed. |
public static String | adaptContextCase(String str) adapt a string to the context case. |
public void | addEntity(Entity entity) Add a new entity. |
public void | close() Close the connection. |
public String | deobfuscate(Object value) De-obfuscate the given value. |
public void | displayStats() Display statistics about the statements pools. |
public Object | evaluate(String query) Evaluate a query to a scalar. |
public Action | getAction(String name) Get a root action. |
public Attribute | getAttribute(String name) Get a root attribute. |
public int | getCaseSensivity() Get database case-sensivity policy. |
public ConnectionWrapper | getConnection() Get a jdbc connection. |
public DriverInfo | getDriverInfo() Get database driver infos. |
public Map<String, Entity> | getEntities() Entities map getter. |
public Entity | getEntity(String name) Get an existing entity. |
public Entity | getEntityCreate(String name) |
public static Database | getInstance(String user, String password, String url) Get a unique Database from connection params. |
public static Database | getInstance(String user, String password, String url, String driver) Get a unique Database from connection params. |
public static Database | getInstance(String user, String password, String url, String driver, String schema) Get a unique Database from connection params. |
public static Database | getInstance(String configFilename) Get a unique Database from config filename. |
public static Database | getInstance(InputStream config) Get a new connection. |
public static Database | getInstance(InputStream config, XIncludeResolver xincludeResolver) Get a new connection. |
public ReverseEngineer | getReverseEngineer() Get reverse engineer. |
public Entity | getRootEntity() Get root entity. |
public String | getSchema() Get the schema. |
public synchronized ConnectionWrapper | getTransactionConnection() Get the underlying jdbc connection used for transactions, and mark it right away as busy. |
public UserContext | getUserContext() |
protected void | initCryptograph() Init cryptograph. |
protected void | loadDriver() Load the appropriate driver. |
public String | obfuscate(Object value) Obfuscate the given value. |
public PooledPreparedStatement | prepare(String query) Prepare a query. |
public RowIterator | query(String query) Issue a query. |
public RowIterator | query(String query, Entity entity) Issue a query, knowing the resulting entity. |
public void | setCaching(int cachingMethod) Set the caching method. |
public void | setCase(int caseSensivity) Set the case policy. |
public void | setDriver(String driverClass) Set driver class. |
public void | setError(String errormsg) |
public void | setMaxConnections(int maxConnections) Set the maximum number of connections. |
public void | setMinConnections(int minConnections) Set minimum number of connections. |
public void | setPassword(String password) Set the database password. |
public void | setReadOnly(boolean readOnly) Set the read-only state. |
public void | setSchema(String schema) Set schema name. |
public void | setSeed(String seed) Set the encryption seed. |
public void | setURL(String url) Set the database URL. |
public void | setUser(String user) Set the database user. |
public void | setUserContext(UserContext userContext) |
public PooledPreparedStatement | transactionPrepare(String query) Prepare a query which is part of a transaction. |
public int | transactionUpdate(String query) Issue an update query that is part of a transaction. |
public int | update(String query) Issue an update query. |