public class SimplePrimaryKey extends AbstractNamer implements PrimaryKey
| Constructor and Description |
|---|
SimplePrimaryKey(Entity entity,
Attribute attribute) |
| 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 |
getFullType()
The full Java type, with package information.
|
String |
getPackageName()
The full package name.
|
String |
getToStringMethod()
Return ".toString()" if this pk is not a string.
|
String |
getType()
The java Type name, without any package information.
|
String |
getVar()
The var for the current type.
|
boolean |
isAllNullable() |
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()
Is there a XtoOne relation pointing to this PK
|
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() |
getAdder, getAdders, getContains, getEditer, 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, getGetter, getGetters, getHibernateFilterName, getPath, getRemover, getRemovers, getSetter, getSetters, getTypeLow, getVars, getVarsUp, getVarUp, getWithpublic boolean isAllNullable()
public 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 isDate()
PrimaryKeyisDate in interface PrimaryKeypublic final boolean isEnum()
PrimaryKeyisEnum in interface PrimaryKeypublic final boolean isImported()
isImported in interface PrimaryKeypublic String getVar()
NamergetVar in interface NamergetVar in class AbstractNamerpublic String getType()
NamergetType in interface NamergetType in class AbstractNamerpublic String getFullType()
NamergetFullType in interface NamergetFullType in class AbstractNamerpublic String getPackageName()
NamergetPackageName in interface NamergetPackageName in class AbstractNamerpublic String getToStringMethod()
PrimaryKeygetToStringMethod in interface PrimaryKeypublic Entity getEntity()
PrimaryKeygetEntity in interface PrimaryKeypublic Attribute getAttribute()
PrimaryKeygetAttribute in interface PrimaryKeypublic List<Attribute> getAttributes()
PrimaryKeygetAttributes in interface PrimaryKeyCopyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.