|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hp.hpl.jena.db.impl.DriverRDB
Base database driver for implementing SpecializedGraphs. Different drivers are needed for different databases and different layout schemes.
This driver is a base implemention from which database-specific drivers can inherit. It is not generic in the sense that it will work on any minimal SQL store and so should be treated as if it were an abstract class.
The SQL statements which implement each of the functions are loaded in a separate file etc/[layout]_[database].sql from the classpath.
Nested Class Summary |
Nested classes inherited from class com.hp.hpl.jena.db.impl.IRDBDriver |
IRDBDriver.GenSQLAnd |
Field Summary | |
protected boolean |
BATCH_ENABLED
Set to true if batching prepared statements is enabled |
protected boolean |
CACHE_PREPARED_STATEMENTS
Set to true to enable cache of pre-prepared statements |
protected String |
DATABASE_TYPE
The name of the database type this driver supports |
protected boolean |
DB_NAMES_TO_UPPER
Indicates whether search pattern used to select system objects by name should be upper-case. |
protected int |
DEFAULT_ID
Unique numeric identifier of the graph holding default properties |
protected String |
DEFAULT_PROPS
Name of the graph holding default properties (the one's that a newly-created graph will have by default |
protected String |
DEFAULT_SQL_FILE
The name of the sql definition file for this database/layout combo |
protected String |
DRIVER_NAME
The class name of the database driver (e.g. jdbc.sql.class) |
protected String |
EOS
true if the database engine will trim trailing spaces in strings. to prevent this, append EOS to strings that should not be trimmed. |
protected char |
EOS_CHAR
|
protected int |
EOS_LEN
|
protected String |
GRAPH_TABLE
Name of the graph table |
protected String |
ID_SQL_TYPE
The SQL type to use for storing ids (compatible with wrapDBID) |
protected int |
INDEX_KEY_LENGTH
The maximum size of index key (or a component of a key) |
protected int |
INDEX_KEY_LENGTH_MAX
The maximum possible value for INDEX_KEY_LENGTH (db-dependent) |
protected boolean |
inTransaction
flag to indicate that there is a transaction active on the associated connection |
protected boolean |
IS_XACT_DB
true if graphs using this database instance supports transactions. |
protected int |
JENA_LONGEST_TABLE_NAME_LENGTH
Holds the length of the longest jena table or index name. |
protected String |
LAYOUT_TYPE
The name of the layout type this driver supports |
protected String |
LAYOUT_VERSION
Database layout version |
protected static org.apache.log4j.Logger |
logger
|
protected String |
LONG_LIT_TABLE
Name of the long literal table |
protected int |
LONG_OBJECT_LENGTH
if URI_COMPRESS is true, compress prefixes that are longer than this. /** The maximum size of an object that can be stored in a Statement table |
protected int |
LONG_OBJECT_LENGTH_MAX
The maximum possible value for LONG_OBJECT_LENGTH (db-dependent) |
protected String |
LONG_URI_TABLE
Name of the long URI table |
protected IDBConnection |
m_dbcon
|
protected DBPropDatabase |
m_dbProps
This Graph's db properties |
protected String |
m_lsetClassName
Cached name of this class's SpecializedGraph_XXX class |
protected String |
m_lsetReifierClassName
Cached name of this class's SpecializedGraphReifer_XXX class |
protected String |
m_psetClassName
Name of this class's PSet_TripleStore_XXX class |
protected String |
m_psetReifierClassName
Name of this class's PSet_TripleStore_XXX class |
protected SQLCache |
m_sql
Instance of SQLCache used by Driver for hard-coded db commands |
protected SpecializedGraph |
m_sysProperties
Cache a reference to the system property graph (java) |
protected boolean |
PRE_ALLOCATE_ID
Set to true if IDs are allocated prior to insert |
static int |
PREFIX_CACHE_SIZE
|
protected String |
PREFIX_TABLE
Name of the prefix table |
protected LRUCache |
prefixCache
|
protected char |
QUOTE_CHAR
EOS is appended to most RDB strings to deal with string trimming. if STRINGS_TRIMMED is false, EOS is null. otherwise, EOS is EOS_CHAR. |
protected static String |
RDBCodeANY
|
protected static String |
RDBCodeBlank
|
protected static String |
RDBCodeDelim
|
protected static char |
RDBCodeDelimChar
|
protected static String |
RDBCodeInvalid
|
protected static String |
RDBCodeLiteral
|
protected static String |
RDBCodePrefix
|
protected static String |
RDBCodeRef
|
protected static String |
RDBCodeURI
|
protected static String |
RDBCodeValue
|
protected static String |
RDBCodeVariable
|
protected boolean |
SKIP_DUPLICATE_CHECK
Set to true if the insert operations already check for duplications |
protected String |
SQL_FILE
The name of the sql definition file for this database/layout combo |
protected String |
STORE_WITH_MODEL
If not null, newly-created graphs share tables with the identified graph |
protected boolean |
STRINGS_TRIMMED
|
protected String |
SYSTEM_STMT_TABLE
Default name of the table that holds system property graph asserted statements |
protected int |
TABLE_NAME_LENGTH_MAX
Holds maximum length of table and index names in database. |
protected String |
TABLE_NAME_PREFIX
Holds prefix for names of Jena database tables. |
protected boolean |
URI_COMPRESS
true if URI's are to be compressed by storing prefixes (an approximation of a namespace) in the JENA_PREFIX table. note that "short" prefixes are not stored, i.e., the prefix length not more than URI_COMPRESS_LENGTH. |
protected int |
URI_COMPRESS_LENGTH
|
protected String |
VERSION
Driver version number |
Constructor Summary | |
DriverRDB()
Create a bare instance of the driver. |
Method Summary | |
void |
abort()
If underlying database connection supports transactions, call abort() on the connection, then turn autocommit on. |
DBIDInt |
addRDBLongObject(DriverRDB.RDBLongObject lobj,
String table)
Insert a long object into the database. |
protected String |
aliasToString(int alias)
|
void |
begin()
If the underlying database connection supports transactions, turn autocommit off, then begin a new transaction. |
protected void |
checkDbIsOpen()
|
protected void |
checkDbUninitialized()
|
void |
cleanDB()
Remove all RDF information from a database. |
void |
clearSequences()
Drop all Jena-related sequences from database, if necessary. |
void |
close()
Deprecated. Since Jena 2.0 this call is no longer required - just close the DBConnection - there should be no need for an application to interact directly with the driver. |
protected String |
colAliasToString(int alias,
char colid)
|
protected String |
colidToColname(char colid)
|
void |
commit()
If the underlying database connection supports transactions, call commit(), then turn autocommit on. |
List |
createSpecializedGraphs(DBPropGraph graphProperties)
Construct and return a new specialized graph. |
String |
createTable(int graphId,
boolean isReif)
Create a table for storing asserted or reified statements. |
protected boolean |
dbIsOpen()
|
static int |
dbSplitNamespace(String uri)
This is cuurently a copy of Util.splitNamespace. |
void |
deleteTable(String tableName)
Delete a table. |
protected SpecializedGraph |
formatAndConstructSystemSpecializedGraph()
Format the database and construct a brand new system specialized graph. |
void |
formatDB()
Deprecated. Since Jena 2.0 this call is no longer needed - formatting happens automatically as a side effect of creating Models - there should be no need for an application to interact directly with the driver. |
String |
genSQLFromKW()
|
String |
genSQLFromList(int aliasCnt,
String table)
Generate an SQL string for a from list of a select stmt. |
String |
genSQLJoin(int lhsAlias,
char lhsCol,
int rhsAlias,
char rhsCol)
Generate an SQL string to joing two table columns. |
String |
genSQLQualConst(int alias,
char pred,
Node lit)
Generate an SQL string to match a table column value to a constant. |
String |
genSQLQualGraphId(int alias,
int graphId)
Generate an SQL string to match a graph id. |
String |
genSQLQualParam(int alias,
char pred)
Generate an SQL string to match a table column value to a parameter. |
String |
genSQLReifQualAnyObj(boolean objIsStmt)
Generate an SQL string for a reified statement to match on any subject, predicate or object column. |
String |
genSQLReifQualObj(char reifProp,
boolean hasObj)
Generate an SQL string for a reified statement to match on a property column. |
String |
genSQLReifQualStmt()
Generate an SQL string for a reified statement to match on the stmt URI. |
String |
genSQLResList(int[] resIndex,
VarIndex[] binding)
Generate an SQL string for a result list of a select stmt. |
String |
genSQLSelectKW()
|
String |
genSQLSelectStmt(String res,
String from,
String qual)
Generate an SQL Select statement given the result list, the from list and the where clause; |
String |
genSQLWhereKW()
|
boolean |
getBatchEnabled()
Get the value of BatchEnabled |
DBIDInt |
getBlankID(String bstr,
boolean add)
Return the database ID for the URI, if it exists |
int |
getCompressCacheSize()
Get the value of CompressCacheSize |
int |
getCompressURILength()
Get the value of CompressURILength |
IDBConnection |
getConnection()
Return the connection |
protected abstract String[] |
getCreateTableParams(int graphId,
boolean isReif)
|
String |
getDatabaseType()
Return a string identifying underlying database type. |
protected abstract String[] |
getDbInitTablesParams()
|
DBPropGraph |
getDefaultModelProperties()
Method getDefaultModelProperties Return the default properties for a new model stored in this database. |
boolean |
getDoCompressURI()
Get the value of DoCompressURI |
boolean |
getDoDuplicateCheck()
Get the value of DoDuplicateCheck |
int |
getIndexKeyLength()
Get the value of IndexKeyLength |
boolean |
getIsTransactionDb()
Get the value of IsTransactionDb |
DBIDInt |
getLiteralID(Node_Literal lnode,
boolean add)
Return the database ID for the literal, if it exists |
DBIDInt |
getLongObjectID(DriverRDB.RDBLongObject lobj,
String table,
boolean add)
|
int |
getLongObjectLength()
Get the value of LongObjectLength |
List |
getSequences()
Check database and see if named sequence exists. |
String |
getStoreWithModel()
Get the value of StoreWithModel |
SpecializedGraph |
getSystemSpecializedGraph()
Return the specialized graph used to store system properties. |
protected int |
getTableCount(int graphId)
|
String |
getTableNamePrefix()
Get the value of TableNamePrefix |
DBIDInt |
getURIID(String qname,
boolean add)
Return the database ID for the URI, if it exists |
abstract int |
graphIdAlloc(String graphName)
Allocate an identifier for a new graph. |
protected String |
IDtoBlank(String bnID)
Return the Blank node string that has the given database id. |
protected String |
IDtoLiteral(int litID)
Return the long literal string that has the given database id. |
protected DriverRDB.RDBLongObject |
IDtoLongObject(int dbid,
String table)
|
protected DriverRDB.RDBLongObject |
IDtoLongObject(String idAsString,
String table)
|
protected String |
IDtoPrefix(int prefixID)
Return the prefix string that has the given prefix id. |
protected String |
IDtoString(int dbID,
String table,
String RDBcode)
|
protected String |
IDtoString(String dbidAsString,
String table,
String RDBcode)
|
protected String |
IDtoURI(String uriID)
Return the URI string that has the given database id. |
boolean |
isDBFormatOK()
Test if the database has previously been formatted. |
protected DriverRDB.RDBLongObject |
literalToLongObject(Node_Literal node)
|
String |
litLangTypeToRDBString(String lang,
String dtype)
Encode a literal node's lang and datatype as a string of the form ":[langLen]:[datatypeLen]:[langString][dataTypeString]" |
String |
nodeToRDBString(Node node,
boolean addIfLong)
Convert a node to a string to be stored in a statement table. |
protected boolean |
objectIsLong(int encodingLen,
String objAsString)
Check if an object is long, i.e., it exceeds the length limit for storing in a statement table. |
protected DriverRDB.RDBLongObject |
PrefixToLongObject(String prefix,
int split)
|
protected void |
RDBStringParseInt(String RDBString,
DriverRDB.ParseInt pi,
boolean toEnd)
|
Node |
RDBStringToNode(String RDBString)
Convert an RDB string to the node that it encodes. |
List |
recreateSpecializedGraphs(DBPropGraph graphProperties)
Construct and return a list of specialized graphs to match those in the store. |
void |
removeSequence(String seqName)
Removes named sequence from the database, if it exists. |
void |
removeSpecializedGraphs(DBPropGraph graphProperties,
List specializedGraphs)
Remove the specialized graph, erasing all trace of a Graph. |
boolean |
sequenceExists(String seqName)
Check database and see if named sequence exists. |
void |
setBatchEnabled(boolean bool)
Set the value of BatchEnabled |
void |
setCompressCacheSize(int count)
Set the value of CompressCacheSize. |
void |
setCompressURILength(int len)
Set the value of CompressURILength. |
void |
setDatabaseProperties(Graph databaseProperties)
Method setDatabaseProperties. |
void |
setDoCompressURI(boolean bool)
Set the value of DoCompressURI. |
void |
setDoDuplicateCheck(boolean bool)
Set the value of DoDuplicateCheck. |
void |
setIndexKeyLength(int len)
Set the value of IndexKeyLength. |
void |
setIsTransactionDb(boolean bool)
Set the value of IsTransactionDb. |
void |
setLongObjectLength(int len)
Set the value of LongObjectLength. |
void |
setStoreWithModel(String modelName)
Set the value of StoreWithModel. |
void |
setTableNamePrefix(String prefix)
Set the value of TableNamePrefix. |
String |
stringToDBname(String aName)
Converts string to form accepted by database. |
protected long |
stringToHash(String str)
|
boolean |
supportsJenaReification()
Deprecated. Since Jena 2.0 the reification API has changed. The new API is supported in all models, but the old Jena 1 API is no longer supported. This call will return false to indicate to old code that the old style of jena reification is not supported. |
boolean |
supportsMultipleModels()
Deprecated. Since Jena 2.0 all databases support multiple models. |
boolean |
transactionsSupported()
Returns true if the underlying database supports transactions. |
protected DriverRDB.RDBLongObject |
URIToLongObject(String qname,
String code)
|
DBIDInt |
wrapDBID(Object id)
Convert the raw SQL object used to store a database identifier into a java object which meets the DBIDInt interface. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hp.hpl.jena.db.impl.IRDBDriver |
getInsertID, graphIdDealloc, setConnection |
Field Detail |
protected DBPropDatabase m_dbProps
protected String m_psetClassName
protected String m_psetReifierClassName
protected String m_lsetClassName
protected String m_lsetReifierClassName
protected String DRIVER_NAME
protected String DATABASE_TYPE
protected int INDEX_KEY_LENGTH
protected int INDEX_KEY_LENGTH_MAX
protected boolean IS_XACT_DB
protected boolean STRINGS_TRIMMED
protected String EOS
protected char EOS_CHAR
protected int EOS_LEN
protected char QUOTE_CHAR
protected boolean DB_NAMES_TO_UPPER
protected boolean URI_COMPRESS
protected int URI_COMPRESS_LENGTH
protected int LONG_OBJECT_LENGTH
protected int LONG_OBJECT_LENGTH_MAX
protected String ID_SQL_TYPE
protected boolean SKIP_DUPLICATE_CHECK
protected boolean PRE_ALLOCATE_ID
protected String SQL_FILE
protected String DEFAULT_SQL_FILE
protected boolean BATCH_ENABLED
protected String TABLE_NAME_PREFIX
protected int TABLE_NAME_LENGTH_MAX
protected int JENA_LONGEST_TABLE_NAME_LENGTH
protected boolean CACHE_PREPARED_STATEMENTS
protected String LAYOUT_TYPE
protected String SYSTEM_STMT_TABLE
protected String LONG_LIT_TABLE
protected String LONG_URI_TABLE
protected String PREFIX_TABLE
protected String GRAPH_TABLE
protected String STORE_WITH_MODEL
protected final String DEFAULT_PROPS
protected final int DEFAULT_ID
protected final String VERSION
protected String LAYOUT_VERSION
protected static org.apache.log4j.Logger logger
protected SQLCache m_sql
protected SpecializedGraph m_sysProperties
protected IDBConnection m_dbcon
protected LRUCache prefixCache
public static final int PREFIX_CACHE_SIZE
protected boolean inTransaction
protected static String RDBCodeURI
protected static String RDBCodeBlank
protected static String RDBCodeLiteral
protected static String RDBCodeVariable
protected static String RDBCodeANY
protected static String RDBCodePrefix
protected static String RDBCodeValue
protected static String RDBCodeRef
protected static String RDBCodeDelim
protected static char RDBCodeDelimChar
protected static String RDBCodeInvalid
Constructor Detail |
public DriverRDB()
Method Detail |
public IDBConnection getConnection()
getConnection
in interface IRDBDriver
public SpecializedGraph getSystemSpecializedGraph()
getSystemSpecializedGraph
in interface IRDBDriver
protected SpecializedGraph formatAndConstructSystemSpecializedGraph()
protected abstract String[] getDbInitTablesParams()
protected abstract String[] getCreateTableParams(int graphId, boolean isReif)
public abstract int graphIdAlloc(String graphName)
IRDBDriver
graphIdAlloc
in interface IRDBDriver
graphName
- The name of a new graph.
public List createSpecializedGraphs(DBPropGraph graphProperties)
createSpecializedGraphs
in interface IRDBDriver
graphProperties
- A set of customization properties for the specialized graph.
public List recreateSpecializedGraphs(DBPropGraph graphProperties)
recreateSpecializedGraphs
in interface IRDBDriver
graphProperties
- A set of customization properties for the graph.
public void removeSpecializedGraphs(DBPropGraph graphProperties, List specializedGraphs)
removeSpecializedGraphs
in interface IRDBDriver
graphProperties
- The properties for the graph to be removed.public void setDatabaseProperties(Graph databaseProperties)
setDatabaseProperties
in interface IRDBDriver
databaseProperties
- is a Graph containing a full set of database propertiespublic DBPropGraph getDefaultModelProperties()
getDefaultModelProperties
in interface IRDBDriver
public boolean isDBFormatOK()
isDBFormatOK
in interface IRDBDriver
public String stringToDBname(String aName)
public void cleanDB()
IRDBDriver
cleanDB
in interface IRDBDriver
public void clearSequences()
public void removeSequence(String seqName)
seqName
- public boolean sequenceExists(String seqName)
seqName
- public List getSequences()
public void formatDB() throws RDFRDBException
formatDB
in interface IRDBDriver
RDFDBException
- if the is a problem opening the connection or an internal SQL error.
RDFRDBException
public String createTable(int graphId, boolean isReif)
createTable
in interface IRDBDriver
graphId
- the graph which the table is created.isReif
- true if table stores reified statements.
public void deleteTable(String tableName)
tableName
- the name of the table to delete. *public void abort() throws RDFRDBException
abort
in interface IRDBDriver
RDFRDBException
public void begin() throws RDFRDBException
begin
in interface IRDBDriver
RDFRDBException
public void commit() throws RDFRDBException
commit
in interface IRDBDriver
RDFRDBException
public String getDatabaseType()
getDatabaseType
in interface IRDBDriver
public boolean transactionsSupported()
transactionsSupported
in interface IRDBDriver
public void close() throws RDFRDBException
close
in interface IRDBDriver
RDFDBException
- if there is an access problem
RDFRDBException
public boolean supportsMultipleModels()
supportsMultipleModels
in interface IRDBDriver
public boolean supportsJenaReification()
supportsJenaReification
in interface IRDBDriver
public String nodeToRDBString(Node node, boolean addIfLong) throws RDFRDBException
nodeToRDBString
in interface IRDBDriver
addIfLong
- If the node is a long object and is not in the database, add it.
RDFRDBException
public Node RDBStringToNode(String RDBString) throws RDFRDBException
RDBStringToNode
in interface IRDBDriver
RDFRDBException
public static int dbSplitNamespace(String uri)
uri
-
protected void RDBStringParseInt(String RDBString, DriverRDB.ParseInt pi, boolean toEnd)
protected DriverRDB.RDBLongObject PrefixToLongObject(String prefix, int split)
public String litLangTypeToRDBString(String lang, String dtype) throws RDFRDBException
RDFRDBException
protected boolean objectIsLong(int encodingLen, String objAsString)
protected DriverRDB.RDBLongObject literalToLongObject(Node_Literal node)
protected long stringToHash(String str)
public DBIDInt getBlankID(String bstr, boolean add) throws RDFRDBException
RDFRDBException
public DBIDInt getURIID(String qname, boolean add) throws RDFRDBException
RDFRDBException
protected DriverRDB.RDBLongObject URIToLongObject(String qname, String code)
public DBIDInt getLiteralID(Node_Literal lnode, boolean add) throws RDFRDBException
RDFRDBException
public DBIDInt getLongObjectID(DriverRDB.RDBLongObject lobj, String table, boolean add) throws RDFRDBException
RDFRDBException
public DBIDInt addRDBLongObject(DriverRDB.RDBLongObject lobj, String table) throws RDFRDBException
RDFRDBException
protected String IDtoPrefix(int prefixID)
prefixID
- - the dbid of the prefix.
protected String IDtoBlank(String bnID)
bnID
- - the dbid of the blank node, as a string.
protected String IDtoURI(String uriID)
uriID
- - the dbid of the uri, as a string.
protected String IDtoLiteral(int litID)
litID
- - the dbid of the literal..
protected String IDtoString(String dbidAsString, String table, String RDBcode)
protected String IDtoString(int dbID, String table, String RDBcode)
protected DriverRDB.RDBLongObject IDtoLongObject(int dbid, String table)
protected DriverRDB.RDBLongObject IDtoLongObject(String idAsString, String table)
public DBIDInt wrapDBID(Object id) throws RDFRDBException
RDFRDBException
public String genSQLReifQualStmt()
IRDBDriver
genSQLReifQualStmt
in interface IRDBDriver
public String genSQLReifQualAnyObj(boolean objIsStmt)
IRDBDriver
genSQLReifQualAnyObj
in interface IRDBDriver
objIsStmt
- If true, the object value is rdf:Statement so also match
on the hasType column.
public String genSQLReifQualObj(char reifProp, boolean hasObj)
IRDBDriver
genSQLReifQualObj
in interface IRDBDriver
reifProp
- The property column to match, one of S,P,O,T for subject,
predicate, object or type, respectively.hasObj
- If true, the object value is known so do equality match. Otherwise,
just check for non-null value.
protected String colidToColname(char colid)
protected String aliasToString(int alias)
protected String colAliasToString(int alias, char colid)
public String genSQLQualConst(int alias, char pred, Node lit)
IRDBDriver
genSQLQualConst
in interface IRDBDriver
alias
- The table alias for this match.pred
- The column to match, one of S,P,O,N,T for subject,
predicate, object, statement or type, respectively.lit
- The literal value to match.
public String genSQLQualParam(int alias, char pred)
IRDBDriver
genSQLQualParam
in interface IRDBDriver
alias
- The table alias for this match.pred
- The column to match, one of S,P,O,N,T for subject,
predicate, object, statement or type, respectively.
public String genSQLQualGraphId(int alias, int graphId)
IRDBDriver
genSQLQualGraphId
in interface IRDBDriver
alias
- The table alias for this match.graphId
- The identifer of the graph to match.
public String genSQLJoin(int lhsAlias, char lhsCol, int rhsAlias, char rhsCol)
IRDBDriver
genSQLJoin
in interface IRDBDriver
lhsAlias
- The left side table alias for the join.lhsCol
- The left side column to join, one of
S,P,O,N,T.rhsAlias
- The right side table alias to join.rhsCol
- The right side column to join.
public String genSQLResList(int[] resIndex, VarIndex[] binding)
IRDBDriver
genSQLResList
in interface IRDBDriver
binding
- Array of Var containing the result list bindings.
public String genSQLFromList(int aliasCnt, String table)
IRDBDriver
genSQLFromList
in interface IRDBDriver
aliasCnt
- The number of table aliases in the from list.table
- The name of the table to be queried.
public String genSQLSelectKW()
public String genSQLFromKW()
public String genSQLWhereKW()
public String genSQLSelectStmt(String res, String from, String qual)
IRDBDriver
genSQLSelectStmt
in interface IRDBDriver
res
- The result list as a string.from
- The from list as a string.qual
- The where qualifier as a string.
protected int getTableCount(int graphId)
public int getLongObjectLength()
IRDBDriver
getLongObjectLength
in interface IRDBDriver
public void setLongObjectLength(int len)
IRDBDriver
setLongObjectLength
in interface IRDBDriver
public int getIndexKeyLength()
IRDBDriver
getIndexKeyLength
in interface IRDBDriver
public void setIndexKeyLength(int len)
IRDBDriver
setIndexKeyLength
in interface IRDBDriver
public boolean getIsTransactionDb()
IRDBDriver
getIsTransactionDb
in interface IRDBDriver
public void setIsTransactionDb(boolean bool)
IRDBDriver
setIsTransactionDb
in interface IRDBDriver
bool
- public boolean getDoCompressURI()
IRDBDriver
getDoCompressURI
in interface IRDBDriver
public void setDoCompressURI(boolean bool)
IRDBDriver
setDoCompressURI
in interface IRDBDriver
bool
- public int getCompressURILength()
IRDBDriver
getCompressURILength
in interface IRDBDriver
public void setCompressURILength(int len)
IRDBDriver
setCompressURILength
in interface IRDBDriver
public boolean getDoDuplicateCheck()
IRDBDriver
getDoDuplicateCheck
in interface IRDBDriver
public void setDoDuplicateCheck(boolean bool)
IRDBDriver
setDoDuplicateCheck
in interface IRDBDriver
bool
- protected boolean dbIsOpen()
protected void checkDbIsOpen()
protected void checkDbUninitialized()
public String getTableNamePrefix()
IRDBDriver
getTableNamePrefix
in interface IRDBDriver
public void setTableNamePrefix(String prefix)
IRDBDriver
setTableNamePrefix
in interface IRDBDriver
public String getStoreWithModel()
IRDBDriver
getStoreWithModel
in interface IRDBDriver
public void setStoreWithModel(String modelName)
IRDBDriver
setStoreWithModel
in interface IRDBDriver
public int getCompressCacheSize()
IRDBDriver
getCompressCacheSize
in interface IRDBDriver
public void setCompressCacheSize(int count)
IRDBDriver
setCompressCacheSize
in interface IRDBDriver
public boolean getBatchEnabled()
IRDBDriver
getBatchEnabled
in interface IRDBDriver
public void setBatchEnabled(boolean bool)
IRDBDriver
setBatchEnabled
in interface IRDBDriver
bool
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |