|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgoldengate.common.database.model.DbModelAbstract
goldengate.common.database.model.DbModelPostgresql
public abstract class DbModelPostgresql
PostGreSQL Database Model implementation
Nested Class Summary | |
---|---|
protected static class |
DbModelPostgresql.DBType
|
Field Summary | |
---|---|
static DbType |
type
|
Constructor Summary | |
---|---|
DbModelPostgresql()
Create the object and initialize if necessary the driver |
Method Summary | |
---|---|
void |
createTables(DbSession session)
Create all necessary tables into the database |
DbType |
getDbType()
|
String |
limitRequest(String allfields,
String request,
int nb)
Add a limit on the request to get the "limit" first rows. |
long |
nextSequence(DbSession dbSession)
|
void |
resetSequence(DbSession session,
long newvalue)
Reset the sequence (example) |
void |
validConnection(DbSession dbSession)
Validate connection |
protected String |
validConnectionString()
|
Methods inherited from class goldengate.common.database.model.DbModelAbstract |
---|
closeInternalConnection, currentNumberOfPooledConnections, getDbConnection, releaseResources, validConnectionSelect |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static DbType type
Constructor Detail |
---|
public DbModelPostgresql() throws GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseNoConnectionException
Method Detail |
---|
public DbType getDbType()
public void validConnection(DbSession dbSession) throws GoldenGateDatabaseNoConnectionException
DbModel
validConnection
in interface DbModel
validConnection
in class DbModelAbstract
GoldenGateDatabaseNoConnectionException
public void createTables(DbSession session) throws GoldenGateDatabaseNoConnectionException
DbModel
session
- SQL session
GoldenGateDatabaseNoConnectionException
public void resetSequence(DbSession session, long newvalue) throws GoldenGateDatabaseNoConnectionException
DbModel
session
- SQL session
GoldenGateDatabaseNoConnectionException
public long nextSequence(DbSession dbSession) throws GoldenGateDatabaseNoConnectionException, GoldenGateDatabaseSqlException, GoldenGateDatabaseNoDataException
GoldenGateDatabaseNoConnectionException
GoldenGateDatabaseSqlException
GoldenGateDatabaseNoDataException
protected String validConnectionString()
validConnectionString
in class DbModelAbstract
public String limitRequest(String allfields, String request, int nb)
DbModel
allfields
- string representing the equivalent to "*" in "select *" but more precisely
as "field1, field2" in "select field1, field2"
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |