public final class DBServerUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MASTER_PROPERTY_TABLE
the name of the raw properties table.
|
static java.lang.String |
MASTER_VIRTUALDB_CREATE_INDEX_SUFFIX_COLUMN
the suffix to use when we create a index.
|
static java.lang.String |
MASTER_VIRTUALDB_CREATE_TABLE_SUFFIX_COLUMN
the suffix to use when we create a table.
|
static java.lang.String |
MASTER_VIRTUALDB_TABLE
the name of the raw virtualdb table.
|
static java.lang.String |
PREFIX_FIELD
prefix of field value table
|
static java.lang.String |
PREFIX_INDX_FLT
prefix of index float
|
static java.lang.String |
PREFIX_INDX_FLT_ARRAY
prefix for ARRAY of index float
|
static java.lang.String |
PREFIX_INDX_KEY_WORD
Prefix for key word index
|
static java.lang.String |
PREFIX_INDX_LNG
prefix of index long
|
static java.lang.String |
PREFIX_INDX_LNG_ARRAY
prefix for ARRAY of index long
|
static java.lang.String |
PREFIX_INDX_MLV
Prefix for MultiLingal value index
|
static java.lang.String |
PREFIX_INDX_MLV_ARRAY
Prefix for ARRAY MultiLingal value index
|
static java.lang.String |
PREFIX_INDX_STR
prefix of index string
|
static java.lang.String |
PREFIX_INDX_STR_ARRAY
prefix for ARRAY of index string
|
static java.lang.String |
PREFIX_LAZY
prefix of layer load value table
|
static java.lang.String |
PREFIX_ROW
prefix of row header table
|
static java.lang.String |
PREFIX_TRANS_DATA
prefix of transaction data table
|
static java.lang.String |
PREFIX_UNIQUE_FLT
prefix of unique float index
|
static java.lang.String |
PREFIX_UNIQUE_LNG
prefix of unique long index
|
static java.lang.String |
PREFIX_UNIQUE_STR
prefix of unique string index
|
static java.lang.String |
TABLE_FIELD_INDEX
The field index version
|
static java.lang.String |
TABLE_STATS_DBCLASS
The statistics field table.
|
static java.lang.String |
TABLE_STATS_FLD_COUNTS
The statistics value table.
|
static java.lang.String |
TABLE_STATS_VALUE_COUNTS
The statistics field table.
|
static java.lang.String |
TABLE_TRANS_ACK
The transaction ack table.
|
static java.lang.String |
TABLE_TRANS_GROUP
The transaction system table.
|
static java.lang.String |
TABLE_TRANS_HEADER
The transaction header table raw table
|
static java.lang.String |
TABLE_TRANS_RECORD
The transaction record table raw table
|
static java.lang.String |
TABLE_TRANS_SYSTEM
The transaction system table.
|
Modifier and Type | Method and Description |
---|---|
void |
createClassIndex(DBClass dbClass)
Create the index for a class.
|
void |
createTransHeaderIndex()
create the indexes for the transaction header table.
|
static DBServerUtil |
find(DataBase dBase)
Find the table utilities for this database.
|
void |
makeBaseTables()
Create the base set of tables required.
|
java.lang.String |
makeClassRawTable(DBClass dbClass,
java.lang.String tableName)
create the raw class tables.
|
void |
makeDBIndex(java.lang.String suffix)
make the index.
|
void |
makeMasterTable(java.lang.String tableName)
Make the master table
|
void |
makeMasterTables()
make all of the master database tables
|
void |
makeNextNumber(java.lang.String suffix)
Make the next number table.
|
void |
makeTable(DBClass dbClass,
java.lang.String tablePrefix)
Create the set of tables for a DBClass.
|
void |
makeThrottlingCounter()
Make the throttling counter table.
|
java.lang.String |
makeTransIndexColumn(DBClass dbClass)
Create the transaction value index table.
|
static void |
makeTransRecord(TableUtil tu)
Make the trans_record table
|
void |
reCreateBaseIndexes() |
public static final java.lang.String TABLE_TRANS_HEADER
public static final java.lang.String TABLE_TRANS_RECORD
public static final java.lang.String TABLE_STATS_FLD_COUNTS
public static final java.lang.String TABLE_STATS_VALUE_COUNTS
public static final java.lang.String TABLE_STATS_DBCLASS
public static final java.lang.String TABLE_TRANS_SYSTEM
public static final java.lang.String TABLE_TRANS_GROUP
public static final java.lang.String TABLE_FIELD_INDEX
public static final java.lang.String TABLE_TRANS_ACK
public static final java.lang.String PREFIX_INDX_MLV
public static final java.lang.String PREFIX_INDX_KEY_WORD
public static final java.lang.String PREFIX_INDX_LNG
public static final java.lang.String PREFIX_INDX_FLT
public static final java.lang.String PREFIX_INDX_STR
public static final java.lang.String PREFIX_UNIQUE_LNG
public static final java.lang.String PREFIX_UNIQUE_STR
public static final java.lang.String PREFIX_UNIQUE_FLT
public static final java.lang.String PREFIX_INDX_MLV_ARRAY
public static final java.lang.String PREFIX_INDX_LNG_ARRAY
public static final java.lang.String PREFIX_INDX_FLT_ARRAY
public static final java.lang.String PREFIX_INDX_STR_ARRAY
public static final java.lang.String PREFIX_FIELD
public static final java.lang.String PREFIX_LAZY
public static final java.lang.String PREFIX_ROW
public static final java.lang.String PREFIX_TRANS_DATA
public static final java.lang.String MASTER_PROPERTY_TABLE
public static final java.lang.String MASTER_VIRTUALDB_TABLE
public static final java.lang.String MASTER_VIRTUALDB_CREATE_TABLE_SUFFIX_COLUMN
public static final java.lang.String MASTER_VIRTUALDB_CREATE_INDEX_SUFFIX_COLUMN
@CheckReturnValue @Nonnull public static DBServerUtil find(@Nonnull DataBase dBase)
dBase
- The database.@Nonnull public java.lang.String makeTransIndexColumn(@Nonnull DBClass dbClass) throws java.sql.SQLException
dbClass
- the logical class name.java.sql.SQLException
- A serious problempublic void createClassIndex(@Nonnull DBClass dbClass) throws java.sql.SQLException
dbClass
- the logical classjava.sql.SQLException
- A SQL exception@Nonnull public java.lang.String makeClassRawTable(DBClass dbClass, java.lang.String tableName) throws java.sql.SQLException
dbClass
- the logical classtableName
- the table table.java.sql.SQLException
- A SQL exceptionpublic void makeTable(@Nonnull DBClass dbClass, @Nonnull java.lang.String tablePrefix) throws java.sql.SQLException
Possible to have two servers conflict on this. Just continue. If the tables have been created by the other server then great otherwise we'll get an error later.
dbClass
- The logical classtablePrefix
- The table prefixjava.sql.SQLException
- A SQL exceptionpublic void makeDBIndex(@Nonnull java.lang.String suffix) throws java.sql.SQLException
suffix
- the suffixjava.sql.SQLException
- A SQL exceptionpublic void makeNextNumber(@Nonnull java.lang.String suffix) throws java.sql.SQLException
suffix
- the class suffixjava.sql.SQLException
- A SQL exceptionpublic void makeThrottlingCounter() throws java.sql.SQLException
java.sql.SQLException
- A SQL exceptionpublic void makeMasterTables() throws java.lang.Exception
java.lang.Exception
- a serious problempublic void makeMasterTable(@Nonnull java.lang.String tableName) throws java.lang.Exception
tableName
- The table name.java.lang.Exception
- A serious problempublic void createTransHeaderIndex() throws java.sql.SQLException
java.sql.SQLException
- could not create the indexes.public static void makeTransRecord(@Nonnull TableUtil tu) throws java.sql.SQLException
tu
- the table utilities to use.java.sql.SQLException
- a serious problem.public void reCreateBaseIndexes() throws java.sql.SQLException
java.sql.SQLException
public void makeBaseTables() throws java.sql.SQLException
Possible to have two servers conflict on this. Just continue. If the tables have been created by the other server then great otherwise we'll get an error later.
java.sql.SQLException
- A SQL exceptionstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.