ClassHighLowRelationalKeyGenerator
Definition
Namespace:Telerik.OpenAccess.Runtime.KeyGenerator
Assembly:Telerik.OpenAccess.Runtime.dll
Syntax:
public class HighLowRelationalKeyGenerator : RelationalKeyGenerator
Inheritance: objectHighLowRelationalKeyGenerator
Derived Classes:
Implements:
Constructors
HighLowRelationalKeyGenerator(KeyGeneratorArgs)
Declaration
protected HighLowRelationalKeyGenerator(KeyGeneratorArgs args)
Parameters
args
HighLowRelationalKeyGenerator(RelationalClass, KeyGeneratorArgs)
Declaration
public HighLowRelationalKeyGenerator(RelationalClass relationalClass, KeyGeneratorArgs args)
Parameters
relationalClass
RelationalClass
args
Fields
className
Declaration
protected string className
Field Value
string
classPk
Declaration
protected RelationalColumn classPk
Field Value
RelationalColumn
classTable
Declaration
protected RelationalTable classTable
Field Value
RelationalTable
classTableName
Declaration
protected string classTableName
Field Value
string
createTable
Declaration
protected bool createTable
Field Value
bool
grabLeft
Declaration
protected int grabLeft
Field Value
int
grabSize
Declaration
protected int grabSize
Field Value
int
ignoreMissingTables
Declaration
protected bool ignoreMissingTables
Field Value
bool
keyColumnLength
Declaration
protected int keyColumnLength
Field Value
int
keyColumnName
Declaration
protected string keyColumnName
Field Value
string
keyColumnType
Declaration
protected int keyColumnType
Field Value
int
keyGenPkColumn
Declaration
protected RelationalColumn keyGenPkColumn
Field Value
RelationalColumn
keyGenTable
Declaration
protected RelationalTable keyGenTable
Field Value
RelationalTable
keyGenTableName
Declaration
protected string keyGenTableName
Field Value
string
keyGenValueColumn
Declaration
protected RelationalColumn keyGenValueColumn
Field Value
RelationalColumn
lastUsed
Declaration
protected long lastUsed
Field Value
long
pkConstraint
Declaration
protected string pkConstraint
Field Value
string
pkJavaTypeCode
Declaration
protected int pkJavaTypeCode
Field Value
int
schemaName
Declaration
protected string schemaName
Field Value
string
selectSql
Declaration
protected string selectSql
Field Value
string
sqlDriver
Declaration
protected SqlDriver sqlDriver
Field Value
SqlDriver
start
Declaration
protected int start
Field Value
int
tableName
Declaration
protected string tableName
Field Value
string
updateSql
Declaration
protected string updateSql
Field Value
string
valueColumnName
Declaration
protected string valueColumnName
Field Value
string
Properties
IsGuidKeyGenerator
Declaration
public bool IsGuidKeyGenerator { get; }
Property Value
bool
Implements
IsInsertSQLProvided
Declaration
public bool IsInsertSQLProvided { get; }
Property Value
bool
Implements
IsOverwritingKeyGenerator
Declaration
public bool IsOverwritingKeyGenerator { get; }
Property Value
bool
Implements
Methods
AddKeyGenTables(Dictionary<string, RelationalTable>, RelationalMetaDataBuilder)
Declaration
public virtual void AddKeyGenTables(Dictionary<string, RelationalTable> tableSet, RelationalMetaDataBuilder mdb)
Parameters
tableSet
Dictionary<string, RelationalTable>
mdb
RelationalMetaDataBuilder
Implements
GetInsertSQL(RelationalClass, RelationalTable, string, string)
Declaration
public string GetInsertSQL(RelationalClass relationalClass, RelationalTable table, string columnsToInsert, string valuesToInsert)
Parameters
relationalClass
RelationalClass
table
RelationalTable
columnsToInsert
string
valuesToInsert
string
Returns
string
Implements
GetStartValue(Connection, ref int)
Declaration
protected virtual bool GetStartValue(Connection con, ref int startValue)
Parameters
con
startValue
int
Returns
bool
GetUniqueId(Connection, string, int, out long)
Declaration
protected bool GetUniqueId(Connection con, string className, int requiredGrabSize, out long pk)
Parameters
con
className
string
requiredGrabSize
int
pk
long
Returns
bool
GetUniqueIds<T>(string, int, int, OAFunc<RelationalKeyGenerator, Connection>, out Connection, out bool)
Declaration
public virtual IEnumerable<T> GetUniqueIds<T>(string sequenceName, int requestedCount, int grabSize, Utils.OAFunc<RelationalKeyGenerator, Connection> funcObtainConnection, out Connection con, out bool shouldCommit)
Parameters
sequenceName
string
requestedCount
int
grabSize
int
funcObtainConnection
Utils.OAFunc<RelationalKeyGenerator, Connection>
con
shouldCommit
bool
Returns
IEnumerable<T>
Implements
IsCached(Connection, RelationalKeyGeneratorInfoCache, string, string, string, string, out bool)
Declaration
public virtual bool IsCached(Connection con, RelationalKeyGeneratorInfoCache infoCache, string tab, string kCol, string vCol, string key, out bool ret)
Parameters
con
infoCache
RelationalKeyGeneratorInfoCache
tab
string
kCol
string
vCol
string
key
string
ret
bool
Returns
bool
generatePrimaryKeyPost(RelationalClass, object[], Connection, Statement)
Declaration
public virtual void generatePrimaryKeyPost(RelationalClass relationalClass, object[] data, Connection con, Statement stat)
Parameters
relationalClass
RelationalClass
data
object[]
con
stat
Implements
generatePrimaryKeyPre(string, RelationalTable, int, object[])
Declaration
public virtual bool generatePrimaryKeyPre(string className, RelationalTable classTableParam, int newObjectCount, object[] data)
Parameters
className
string
classTableParam
RelationalTable
newObjectCount
int
data
object[]
Returns
bool
Implements
generatePrimaryKeyPre(string, RelationalTable, int, object[], Connection)
Declaration
public virtual void generatePrimaryKeyPre(string className, RelationalTable classTableParam, int newObjectCount, object[] data, Connection con)
Parameters
className
string
classTableParam
RelationalTable
newObjectCount
int
data
object[]
con
Implements
getPostInsertSQLSuffix(RelationalClass, RelationalTable)
Declaration
public virtual string getPostInsertSQLSuffix(RelationalClass relationalClass, RelationalTable table)
Parameters
relationalClass
RelationalClass
table
RelationalTable
Returns
string
Implements
getRequiresOwnConnection()
Declaration
public virtual bool getRequiresOwnConnection()
Returns
bool
Implements
init(RelationalClass, Connection, RelationalKeyGeneratorInfoCache)
Declaration
public virtual bool init(RelationalClass relationalClass, Connection con, RelationalKeyGeneratorInfoCache relationalKeyGeneratorInfoCache)
Parameters
relationalClass
RelationalClass
con
relationalKeyGeneratorInfoCache
Returns
bool
Implements
init(string, Connection, RelationalKeyGeneratorInfoCache)
Declaration
public virtual bool init(string sequenceName, Connection con, RelationalKeyGeneratorInfoCache relationalKeyGeneratorInfoCache)
Parameters
sequenceName
string
con
relationalKeyGeneratorInfoCache
Returns
bool
isAutoIncPostInsertGenerator()
Declaration
public virtual bool isAutoIncPostInsertGenerator()
Returns
bool
Implements
isPostInsertGenerator()
Declaration
public virtual bool isPostInsertGenerator()
Returns
bool
Implements
needsExtraPkDuringInsert()
Declaration
public virtual bool needsExtraPkDuringInsert()
Returns
bool
Implements