public abstract class DbEntityPersister extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DbPersister |
_persister |
protected Connection |
_rdbmsConnection |
static Date |
MAX_DATE |
static Date |
MIN_DATE |
| Modifier | Constructor and Description |
|---|---|
protected |
DbEntityPersister(DbPersister persister) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
closePreparedStatements() |
protected void |
createPreparedStatements() |
protected void |
createTables(boolean createIndexes) |
protected void |
doClose()
Method invoked to close the concrete entity persister
This method is called just before the database connection is closed.
|
protected void |
doOpen()
Method invoked to open the concrete entity persister
This method is called after the database connection is opened and tables and indexes for this entity are created
|
protected String |
escapeSpaces(String str) |
protected static String[] |
fromCommaDelimited(String str) |
Set<String> |
getTableNames() |
boolean |
indexExists(String tableName,
String indexName) |
static boolean |
isValidDate(Date date) |
void |
open(Connection rdbmsConnection,
boolean createTables,
boolean createIndexes) |
protected String |
quote(String str) |
boolean |
sequenceExists(String sequenceName) |
protected boolean |
tableExists(String tableName) |
protected static String |
toCommaDelimited(String[] strs) |
protected String |
tracePrefix() |
protected Tracer |
tracer() |
protected void |
write(org.influxdb.dto.Point point) |
protected void |
write(org.influxdb.dto.Point point,
String rp) |
protected final DbPersister _persister
protected Connection _rdbmsConnection
public static final Date MIN_DATE
public static final Date MAX_DATE
protected DbEntityPersister(DbPersister persister)
protected void createPreparedStatements()
throws Exception
Exceptionprotected final String tracePrefix()
protected final Tracer tracer()
protected final boolean tableExists(String tableName) throws Exception
Exceptionprotected final void write(org.influxdb.dto.Point point)
protected final void write(org.influxdb.dto.Point point,
String rp)
protected void doOpen()
throws Exception
This method is called after the database connection is opened and tables and indexes for this entity are created
Exceptionprotected void doClose()
This method is called just before the database connection is closed.
public final boolean indexExists(String tableName, String indexName) throws Exception
Exceptionpublic final boolean sequenceExists(String sequenceName) throws Exception
Exceptionpublic static final boolean isValidDate(Date date)
public final void open(Connection rdbmsConnection, boolean createTables, boolean createIndexes) throws Exception
Exceptionpublic final void close()
Copyright © 2016 Neeve Research, LLC. All Rights Reserved.