public class CompositePrimaryKey extends ClassNamer implements PrimaryKey
| Constructor and Description |
|---|
CompositePrimaryKey(Entity entity,
List<Attribute> attributes) |
| Modifier and Type | Method and Description |
|---|---|
Attribute |
getAttribute()
Return the only attribute when isSimple returns true.
|
List<Attribute> |
getAttributes()
Return the attributes that form this PrimaryKey.
|
Entity |
getEntity()
The entity owning this PrimaryKey.
|
String |
getToStringMethod()
Return ".toString()" if this pk is not a string.
|
String |
getVar()
The var for the current type.
|
boolean |
isComposite()
Returns true if the number of attributes is greater than 1.
|
boolean |
isDate()
Returns true if the only pk attribute is a date.
|
boolean |
isEnum()
Returns true if the only pk attribute is an Enum.
|
boolean |
isImported()
Returns true if one of its attribute is an imported key
|
boolean |
isJavaBaseClass()
Returns true if the type is not a simple java type
|
boolean |
isNoPk() |
boolean |
isSimple()
Returns true if the number of attributes is exactly 1.
|
String |
toString() |
getClassType, getPackageName, getSubPackageName, getSubPackagePath, getTypegetAdder, getAdders, getContains, getEditer, getFullType, getGetter, getGetterLocalized, getGetters, getHas, getHasPlural, getHibernateFilterName, getPackageNode, getPackageNodeUp, getPath, getRandomGetter, getRemover, getRemovers, getSetter, getSetters, getTestType, getTypeLow, getUniqueDeleter, getUniqueGetter, getVarLocalized, getVars, getVarsUp, getVarUp, getWithequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetAdder, getAdders, getContains, getEditer, getFullType, getGetter, getGetters, getHibernateFilterName, getPackageName, getPath, getRemover, getRemovers, getSetter, getSetters, getType, getTypeLow, getVars, getVarsUp, getVarUp, getWithpublic final String getVar()
NamergetVar in interface NamergetVar in class AbstractNamerpublic final boolean isNoPk()
isNoPk in interface PrimaryKeypublic final boolean isSimple()
PrimaryKeyisSimple in interface PrimaryKeypublic final boolean isComposite()
PrimaryKeyisComposite in interface PrimaryKeypublic final boolean isJavaBaseClass()
PrimaryKeyisJavaBaseClass in interface PrimaryKeypublic final boolean isImported()
PrimaryKeyisImported in interface PrimaryKeypublic final boolean isDate()
PrimaryKeyisDate in interface PrimaryKeypublic final boolean isEnum()
PrimaryKeyisEnum in interface PrimaryKeypublic Attribute getAttribute()
PrimaryKeygetAttribute in interface PrimaryKeypublic String getToStringMethod()
PrimaryKeygetToStringMethod in interface PrimaryKeypublic Entity getEntity()
PrimaryKeygetEntity in interface PrimaryKeypublic List<Attribute> getAttributes()
PrimaryKeygetAttributes in interface PrimaryKeyCopyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.