public abstract class KeyFieldConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Charset |
charset |
protected int |
sequenceNum |
protected int |
totalFields
the total number of fields in the row or column composite key
|
| Constructor and Description |
|---|
KeyFieldConfig(KeyField field,
int sequenceNum,
int totalFields) |
| Modifier and Type | Method and Description |
|---|---|
abstract org.plasma.sdo.DataFlavor |
getDataFlavor() |
abstract String |
getKey(commonj.sdo.DataGraph dataGraph)
Returns a key value as string from the given data graph
|
abstract String |
getKey(commonj.sdo.DataObject dataObject)
Returns a key value as string from the given data object
|
abstract byte[] |
getKeyBytes(commonj.sdo.DataGraph dataGraph)
Returns a key value as bytes from the given data graph
|
abstract byte[] |
getKeyBytes(commonj.sdo.DataObject dataObject)
Returns a key value as bytes from the given data object
|
abstract int |
getMaxLength()
Returns the maximum length allowed for this key field.
|
int |
getSeqNum() |
int |
getTotalFields() |
boolean |
isHash() |
protected int sequenceNum
protected int totalFields
protected Charset charset
public KeyFieldConfig(KeyField field, int sequenceNum, int totalFields)
public int getSeqNum()
public int getTotalFields()
public boolean isHash()
public abstract String getKey(commonj.sdo.DataGraph dataGraph)
dataGraph - the data graphpublic abstract String getKey(commonj.sdo.DataObject dataObject)
dataObject - the root data objectpublic abstract byte[] getKeyBytes(commonj.sdo.DataGraph dataGraph)
dataGraph - the data graphpublic abstract byte[] getKeyBytes(commonj.sdo.DataObject dataObject)
dataObject - the root data objectpublic abstract int getMaxLength()
public abstract org.plasma.sdo.DataFlavor getDataFlavor()
Copyright © 2017. All Rights Reserved.