public abstract class KittyModel
extends java.lang.Object
implements java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_UNABLE_TO_CLONE |
(package private) java.util.ArrayList<java.lang.String> |
exclusions |
Constructor and Description |
---|
KittyModel() |
Modifier and Type | Method and Description |
---|---|
KittyModel |
clone() |
<T extends KittyModel> |
clone(java.lang.Class<T> recordClass) |
java.util.Map<java.lang.String,java.lang.String> |
getPrimaryKeyValues()
Returns map where keys are names of columns that are part of PK for this model and values are
values of those columns for this model
Override this method manually if you want achieve more performance for update methods in KittyMapper (setting this method manually in KittyModel child would avoid generating
this map in update operations via reflection in cases when RowId not set and where statement not
defined). |
java.lang.Long |
getRowID() |
void |
setFieldExclusion(java.lang.String fieldName)
Sets field exclusion for setting it explicitly
Usefull for inserting values that should have to be assigned by DEFAULT constraint or for fields that are parts of PK that should be generated automatically by trigger |
(package private) void |
setRowID(java.lang.Long rowid) |
java.lang.String |
toLogString()
Implement this method in order to use functionality of dev logging model values.
|
public static final java.lang.String EXCEPTION_UNABLE_TO_CLONE
final java.util.ArrayList<java.lang.String> exclusions
final void setRowID(java.lang.Long rowid)
public final java.lang.Long getRowID()
public java.util.Map<java.lang.String,java.lang.String> getPrimaryKeyValues()
KittyMapper
(setting this method manually in KittyModel child would avoid generating
this map in update operations via reflection in cases when RowId not set and where statement not
defined).public <T extends KittyModel> T clone(java.lang.Class<T> recordClass)
public KittyModel clone()
clone
in class java.lang.Object
public java.lang.String toLogString()
KittyUtils.implodeWithCommaInBKT(String[])
public final void setFieldExclusion(java.lang.String fieldName)
fieldName
-