public class EmbeddedId extends CompositeId
Modifier and Type | Field and Description |
---|---|
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
EmbeddedId(EntityType ownerType,
EmbeddedIdField key) |
Modifier and Type | Method and Description |
---|---|
void |
generateCopy(JavaWriter out,
java.lang.String dest,
java.lang.String source)
Generates code to copy to an object.
|
java.lang.String |
generateGet(java.lang.String objThis)
Returns the key for the value
|
int |
generateLoadForeign(JavaWriter out,
java.lang.String rs,
java.lang.String indexVar,
int index,
java.lang.String name)
Returns the foreign type.
|
void |
generatePrologue(JavaWriter out,
java.util.HashSet<java.lang.Object> completedSet)
Generates any class prologue.
|
void |
generatePrologueMake(JavaWriter out,
java.util.HashSet<java.lang.Object> completedSet)
Generates any prologue.
|
EmbeddedIdField |
getEmbeddedIdField()
Returns the embedded id field
|
boolean |
isEmbeddedId()
Returns true if this is an @EmbeddedId
|
boolean |
isIdentityGenerator()
Returns true for an identity key.
|
generateCastFromObject, generateCheckCreateKey, generateCreateTableSQL, generateEquals, generateGetProxyProperty, generateJavaSelect, generateLoadForeign, generateLoadFromObject, generateLoadSelect, generateMatch, generatePrologue, generatePrologueLoad, generateSelect, generateSet, generateSetKey, generateUpdateFromObject, generateWhere, getForeignMakeKeyName, getForeignTypeName, setKeyClass, toObject
addKey, generateGetProxyKey, generateMatchArgWhere, generateRawWhere, generateSet, generateSetGeneratedKeys, generateSetInsert, generateStatementSet, getColumns, getGeneratedIdField, getKey, getKeyCount, getKeys, getObject, getOwnerType, init, toObjectKey
public EmbeddedId(EntityType ownerType, EmbeddedIdField key)
public boolean isIdentityGenerator()
isIdentityGenerator
in class Id
public EmbeddedIdField getEmbeddedIdField()
getEmbeddedIdField
in class Id
public boolean isEmbeddedId()
isEmbeddedId
in class Id
public void generateCopy(JavaWriter out, java.lang.String dest, java.lang.String source) throws java.io.IOException
generateCopy
in class Id
java.io.IOException
public int generateLoadForeign(JavaWriter out, java.lang.String rs, java.lang.String indexVar, int index, java.lang.String name) throws java.io.IOException
generateLoadForeign
in class CompositeId
java.io.IOException
public void generatePrologue(JavaWriter out, java.util.HashSet<java.lang.Object> completedSet) throws java.io.IOException
generatePrologue
in class CompositeId
java.io.IOException
public void generatePrologueMake(JavaWriter out, java.util.HashSet<java.lang.Object> completedSet) throws java.io.IOException
generatePrologueMake
in class CompositeId
java.io.IOException
public java.lang.String generateGet(java.lang.String objThis)
generateGet
in class CompositeId