public interface PrimaryKey extends Namer
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.
|
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.
|
getAdder, getAdders, getContains, getEditer, getFullType, getGetter, getGetters, getHibernateFilterName, getPackageName, getPath, getRemover, getRemovers, getSetter, getSetters, getType, getTypeLow, getVar, getVars, getVarsUp, getVarUp, getWith
boolean isNoPk()
boolean isSimple()
boolean isComposite()
boolean isJavaBaseClass()
boolean isImported()
boolean isDate()
boolean isEnum()
Attribute getAttribute()
Entity getEntity()
String getToStringMethod()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.