Class
HighLowRelationalKeyGenerator

Definition

Namespace:Telerik.OpenAccess.Runtime.KeyGenerator

Assembly:Telerik.OpenAccess.Runtime.dll

Syntax:

cs-api-definition
public class HighLowRelationalKeyGenerator : RelationalKeyGenerator

Inheritance: objectHighLowRelationalKeyGenerator

Derived Classes: IncrementalGuidKeyGeneratorSharedHighLowRelationalKeyGeneratorUniqueIdRelationalKeyGenerator

Implements: RelationalKeyGenerator

Constructors

HighLowRelationalKeyGenerator(KeyGeneratorArgs)

Declaration

cs-api-definition
protected HighLowRelationalKeyGenerator(KeyGeneratorArgs args)

Parameters

args

KeyGeneratorArgs

HighLowRelationalKeyGenerator(RelationalClass, KeyGeneratorArgs)

Declaration

cs-api-definition
public HighLowRelationalKeyGenerator(RelationalClass relationalClass, KeyGeneratorArgs args)

Parameters

relationalClass

RelationalClass

args

KeyGeneratorArgs

Fields

className

Declaration

cs-api-definition
protected string className

Field Value

string

classPk

Declaration

cs-api-definition
protected RelationalColumn classPk

Field Value

RelationalColumn

classTable

Declaration

cs-api-definition
protected RelationalTable classTable

Field Value

RelationalTable

classTableName

Declaration

cs-api-definition
protected string classTableName

Field Value

string

createTable

Declaration

cs-api-definition
protected bool createTable

Field Value

bool

grabLeft

Declaration

cs-api-definition
protected int grabLeft

Field Value

int

grabSize

Declaration

cs-api-definition
protected int grabSize

Field Value

int

ignoreMissingTables

Declaration

cs-api-definition
protected bool ignoreMissingTables

Field Value

bool

keyColumnLength

Declaration

cs-api-definition
protected int keyColumnLength

Field Value

int

keyColumnName

Declaration

cs-api-definition
protected string keyColumnName

Field Value

string

keyColumnType

Declaration

cs-api-definition
protected int keyColumnType

Field Value

int

keyGenPkColumn

Declaration

cs-api-definition
protected RelationalColumn keyGenPkColumn

Field Value

RelationalColumn

keyGenTable

Declaration

cs-api-definition
protected RelationalTable keyGenTable

Field Value

RelationalTable

keyGenTableName

Declaration

cs-api-definition
protected string keyGenTableName

Field Value

string

keyGenValueColumn

Declaration

cs-api-definition
protected RelationalColumn keyGenValueColumn

Field Value

RelationalColumn

lastUsed

Declaration

cs-api-definition
protected long lastUsed

Field Value

long

pkConstraint

Declaration

cs-api-definition
protected string pkConstraint

Field Value

string

pkJavaTypeCode

Declaration

cs-api-definition
protected int pkJavaTypeCode

Field Value

int

schemaName

Declaration

cs-api-definition
protected string schemaName

Field Value

string

selectSql

Declaration

cs-api-definition
protected string selectSql

Field Value

string

sqlDriver

Declaration

cs-api-definition
protected SqlDriver sqlDriver

Field Value

SqlDriver

start

Declaration

cs-api-definition
protected int start

Field Value

int

tableName

Declaration

cs-api-definition
protected string tableName

Field Value

string

updateSql

Declaration

cs-api-definition
protected string updateSql

Field Value

string

valueColumnName

Declaration

cs-api-definition
protected string valueColumnName

Field Value

string

Properties

IsGuidKeyGenerator

Declaration

cs-api-definition
public bool IsGuidKeyGenerator { get; }

Property Value

bool

Implements RelationalKeyGenerator.IsGuidKeyGenerator

IsInsertSQLProvided

Declaration

cs-api-definition
public bool IsInsertSQLProvided { get; }

Property Value

bool

Implements RelationalKeyGenerator.IsInsertSQLProvided

IsOverwritingKeyGenerator

Declaration

cs-api-definition
public bool IsOverwritingKeyGenerator { get; }

Property Value

bool

Implements RelationalKeyGenerator.IsOverwritingKeyGenerator

Methods

AddKeyGenTables(Dictionary<string, RelationalTable>, RelationalMetaDataBuilder)

Declaration

cs-api-definition
public virtual void AddKeyGenTables(Dictionary<string, RelationalTable> tableSet, RelationalMetaDataBuilder mdb)

Parameters

tableSet

Dictionary<string, RelationalTable>

mdb

RelationalMetaDataBuilder

Implements RelationalKeyGenerator.AddKeyGenTables(Dictionary<string, RelationalTable>, RelationalMetaDataBuilder)

GetInsertSQL(RelationalClass, RelationalTable, string, string)

Declaration

cs-api-definition
public string GetInsertSQL(RelationalClass relationalClass, RelationalTable table, string columnsToInsert, string valuesToInsert)

Parameters

relationalClass

RelationalClass

table

RelationalTable

columnsToInsert

string

valuesToInsert

string

Returns

string

Implements RelationalKeyGenerator.GetInsertSQL(RelationalClass, RelationalTable, string, string)

GetStartValue(Connection, ref int)

Declaration

cs-api-definition
protected virtual bool GetStartValue(Connection con, ref int startValue)

Parameters

con

Connection

startValue

int

Returns

bool

GetUniqueId(Connection, string, int, out long)

Declaration

cs-api-definition
protected bool GetUniqueId(Connection con, string className, int requiredGrabSize, out long pk)

Parameters

con

Connection

className

string

requiredGrabSize

int

pk

long

Returns

bool

GetUniqueIds<T>(string, int, int, OAFunc<RelationalKeyGenerator, Connection>, out Connection, out bool)

Declaration

cs-api-definition
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

Connection

shouldCommit

bool

Returns

IEnumerable<T>

Implements RelationalKeyGenerator.GetUniqueIds<T>(string, int, int, Utils.OAFunc<RelationalKeyGenerator, Connection>, out Connection, out bool)

IsCached(Connection, RelationalKeyGeneratorInfoCache, string, string, string, string, out bool)

Declaration

cs-api-definition
public virtual bool IsCached(Connection con, RelationalKeyGeneratorInfoCache infoCache, string tab, string kCol, string vCol, string key, out bool ret)

Parameters

con

Connection

infoCache

RelationalKeyGeneratorInfoCache

tab

string

kCol

string

vCol

string

key

string

ret

bool

Returns

bool

cleanup(ResultSet)

Declaration

cs-api-definition
protected static void cleanup(ResultSet rs)

Parameters

rs

ResultSet

cleanup(Statement)

Declaration

cs-api-definition
protected static void cleanup(Statement s)

Parameters

s

Statement

generatePrimaryKeyPost(RelationalClass, object[], Connection, Statement)

Declaration

cs-api-definition
public virtual void generatePrimaryKeyPost(RelationalClass relationalClass, object[] data, Connection con, Statement stat)

Parameters

relationalClass

RelationalClass

data

object[]

con

Connection

stat

Statement

Implements RelationalKeyGenerator.generatePrimaryKeyPost(RelationalClass, object[], Connection, Statement)

generatePrimaryKeyPre(string, RelationalTable, int, object[])

Declaration

cs-api-definition
public virtual bool generatePrimaryKeyPre(string className, RelationalTable classTableParam, int newObjectCount, object[] data)

Parameters

className

string

classTableParam

RelationalTable

newObjectCount

int

data

object[]

Returns

bool

Implements RelationalKeyGenerator.generatePrimaryKeyPre(string, RelationalTable, int, object[])

generatePrimaryKeyPre(string, RelationalTable, int, object[], Connection)

Declaration

cs-api-definition
public virtual void generatePrimaryKeyPre(string className, RelationalTable classTableParam, int newObjectCount, object[] data, Connection con)

Parameters

className

string

classTableParam

RelationalTable

newObjectCount

int

data

object[]

con

Connection

Implements RelationalKeyGenerator.generatePrimaryKeyPre(string, RelationalTable, int, object[], Connection)

getPostInsertSQLSuffix(RelationalClass, RelationalTable)

Declaration

cs-api-definition
public virtual string getPostInsertSQLSuffix(RelationalClass relationalClass, RelationalTable table)

Parameters

relationalClass

RelationalClass

table

RelationalTable

Returns

string

Implements RelationalKeyGenerator.getPostInsertSQLSuffix(RelationalClass, RelationalTable)

getRequiresOwnConnection()

Declaration

cs-api-definition
public virtual bool getRequiresOwnConnection()

Returns

bool

Implements RelationalKeyGenerator.getRequiresOwnConnection()

init(RelationalClass, Connection, RelationalKeyGeneratorInfoCache)

Declaration

cs-api-definition
public virtual bool init(RelationalClass relationalClass, Connection con, RelationalKeyGeneratorInfoCache relationalKeyGeneratorInfoCache)

Parameters

relationalClass

RelationalClass

con

Connection

relationalKeyGeneratorInfoCache

RelationalKeyGeneratorInfoCache

Returns

bool

Implements RelationalKeyGenerator.init(RelationalClass, Connection, RelationalKeyGeneratorInfoCache)

init(string, Connection, RelationalKeyGeneratorInfoCache)

Declaration

cs-api-definition
public virtual bool init(string sequenceName, Connection con, RelationalKeyGeneratorInfoCache relationalKeyGeneratorInfoCache)

Parameters

sequenceName

string

con

Connection

relationalKeyGeneratorInfoCache

RelationalKeyGeneratorInfoCache

Returns

bool

isAutoIncPostInsertGenerator()

Declaration

cs-api-definition
public virtual bool isAutoIncPostInsertGenerator()

Returns

bool

Implements RelationalKeyGenerator.isAutoIncPostInsertGenerator()

isPostInsertGenerator()

Declaration

cs-api-definition
public virtual bool isPostInsertGenerator()

Returns

bool

Implements RelationalKeyGenerator.isPostInsertGenerator()

needsExtraPkDuringInsert()

Declaration

cs-api-definition
public virtual bool needsExtraPkDuringInsert()

Returns

bool

Implements RelationalKeyGenerator.needsExtraPkDuringInsert()

In this article
DefinitionConstructorsHighLowRelationalKeyGenerator(KeyGeneratorArgs)HighLowRelationalKeyGenerator(RelationalClass, KeyGeneratorArgs)FieldsclassNameclassPkclassTableclassTableNamecreateTablegrabLeftgrabSizeignoreMissingTableskeyColumnLengthkeyColumnNamekeyColumnTypekeyGenPkColumnkeyGenTablekeyGenTableNamekeyGenValueColumnlastUsedpkConstraintpkJavaTypeCodeschemaNameselectSqlsqlDriverstarttableNameupdateSqlvalueColumnNamePropertiesIsGuidKeyGeneratorIsInsertSQLProvidedIsOverwritingKeyGeneratorMethodsAddKeyGenTables(Dictionary<string, RelationalTable>, RelationalMetaDataBuilder)GetInsertSQL(RelationalClass, RelationalTable, string, string)GetStartValue(Connection, ref int)GetUniqueId(Connection, string, int, out long)GetUniqueIds<T>(string, int, int, OAFunc<RelationalKeyGenerator, Connection>, out Connection, out bool)IsCached(Connection, RelationalKeyGeneratorInfoCache, string, string, string, string, out bool)cleanup(ResultSet)cleanup(Statement)generatePrimaryKeyPost(RelationalClass, object[], Connection, Statement)generatePrimaryKeyPre(string, RelationalTable, int, object[])generatePrimaryKeyPre(string, RelationalTable, int, object[], Connection)getPostInsertSQLSuffix(RelationalClass, RelationalTable)getRequiresOwnConnection()init(RelationalClass, Connection, RelationalKeyGeneratorInfoCache)init(string, Connection, RelationalKeyGeneratorInfoCache)isAutoIncPostInsertGenerator()isPostInsertGenerator()needsExtraPkDuringInsert()
Not finding the help you need?
Contact Support