public class JDBCObjectKeyCache
extends java.lang.Object
implements java.io.Serializable
JDBCObject key field names as defined by the
db.[tblname].Primary or db.[tblname].Index.0 property values.| Modifier and Type | Field and Description |
|---|---|
private static java.util.HashMap<java.lang.String,java.lang.String[]> |
cvCache
A cache of JDBCObject key field names.
|
private static long |
serialVersionUID
The class' serialization version id.
|
| Constructor and Description |
|---|
JDBCObjectKeyCache() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String[] |
getKeyFieldNames(JDBCObject<?> obj)
Returns the key field names for a
JDBCObject. |
static java.lang.String[] |
getKeyFieldNames(java.lang.String tblname)
Returns the key field names for a table name.
|
private static final long serialVersionUID
private static java.util.HashMap<java.lang.String,java.lang.String[]> cvCache
public static java.lang.String[] getKeyFieldNames(JDBCObject<?> obj)
JDBCObject.obj - (JDBCObject) The object for the desired key fields.null if
the field names could not be determined.public static java.lang.String[] getKeyFieldNames(java.lang.String tblname)
tblname - (String) The table name for the desired key fields.null if
the field names could not be determined.