public class BinManager extends BaseTable implements IBinManager
Field | Type | Description |
---|---|---|
binname | VARCHAR(255) | Primary Key |
bincounter | BIGINT |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
binCounterField |
static java.lang.String |
binNameField |
static java.lang.String |
connectorClassField |
dbInterface, tableName
Constructor and Description |
---|
BinManager(IDBInterface database)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
deinstall()
Uninstall.
|
double[] |
getIncrementBinValues(java.lang.String connectorClass,
java.lang.String binName,
double newBinValue,
int count)
Get N bin values (and set next one).
|
double[] |
getIncrementBinValuesInTransaction(java.lang.String connectorClass,
java.lang.String binName,
double newBinValue,
int count)
Get N bin values (and set next one).
|
void |
install()
Install or upgrade this table.
|
void |
reset()
Reset all bins
|
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
public static final java.lang.String _rcsid
public static final java.lang.String connectorClassField
public static final java.lang.String binNameField
public static final java.lang.String binCounterField
public BinManager(IDBInterface database) throws ManifoldCFException
database
- is the database handle.ManifoldCFException
public void install() throws ManifoldCFException
install
in interface IBinManager
ManifoldCFException
public void deinstall() throws ManifoldCFException
deinstall
in interface IBinManager
ManifoldCFException
public void reset() throws ManifoldCFException
reset
in interface IBinManager
ManifoldCFException
public double[] getIncrementBinValues(java.lang.String connectorClass, java.lang.String binName, double newBinValue, int count) throws ManifoldCFException
getIncrementBinValues
in interface IBinManager
connectorClass
- is the class name of the connectorbinName
- is the name of the bin (256 char max)newBinValue
- is the value to use if there is no such bin yet. This is the value that will be
returned; what will be stored will be that value + 1.count
- is the number of values desired.ManifoldCFException
public double[] getIncrementBinValuesInTransaction(java.lang.String connectorClass, java.lang.String binName, double newBinValue, int count) throws ManifoldCFException
getIncrementBinValuesInTransaction
in interface IBinManager
connectorClass
- is the class name of the connectorbinName
- is the name of the bin (256 char max)newBinValue
- is the value to use if there is no such bin yet. This is the value that will be
returned; what will be stored will be that value + 1.count
- is the number of values desired.ManifoldCFException