Class DeployBeanPropertyAssocOne<T>
- java.lang.Object
-
- io.ebeaninternal.server.deploy.meta.DeployBeanProperty
-
- io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc<T>
-
- io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssocOne<T>
-
public class DeployBeanPropertyAssocOne<T> extends DeployBeanPropertyAssoc<T>
Property mapped to a joined bean.
-
-
Constructor Summary
Constructors Constructor Description DeployBeanPropertyAssocOne(DeployBeanDescriptor<?> desc, Class<T> targetType)
Create the property.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getColumnPrefix()
String
getDbColumn()
The database column name this is mapped to.DeployBeanEmbedded
getDeployEmbedded()
Return the deploy information specifically for the deployment of Embedded beans.boolean
isCompound()
Return true if this has multiple properties (expected for embedded id).boolean
isOneToOne()
Return true if this a OneToOne property.boolean
isOneToOneExported()
Return true if this is the exported side of a OneToOne.boolean
isPrimaryKeyExport()
boolean
isPrimaryKeyJoin()
void
setColumnPrefix(String columnPrefix)
void
setImportedPrimaryKeyColumn(DeployBeanProperty primaryKey)
Set to true if this is part of the primary key.void
setJoinColumns(DeployTableJoinColumn[] columns, boolean reverse)
void
setJoinType(boolean outerJoin)
void
setOneToOne()
Set to true if this is a OneToOne.void
setOneToOneExported()
Set to true if this is the exported side of a OneToOne.void
setPrimaryKeyExport()
Set as export side of OneToOne with PrimaryKeyJoin.void
setPrimaryKeyJoin(boolean primaryKeyJoin)
Mark as PrimaryKeyJoin (we don't know which side is the export side initially).void
setSqlFormula(String formulaSelect, String formulaJoin)
The property is based on a formula.-
Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc
getBeanTable, getCascadeInfo, getDocStoreDoc, getExtraWhere, getFetchPreference, getForeignKey, getMappedBy, getTableJoin, getTargetDeploy, getTargetType, isOrphanRemoval, setBeanTable, setDocStoreEmbedded, setExtraWhere, setFetchPreference, setForeignKey, setMappedBy, setOrphanRemoval
-
Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanProperty
addDbMigrationInfo, checkPrimitiveBoolean, getDbBind, getDbColumnDefaultSqlLiteral, getDbColumnDefn, getDbComment, getDbEncryptedType, getDbEncryptFunction, getDbLength, getDbMigrationInfos, getDbScale, getDbType, getDesc, getDocPropertyOptions, getElPlaceHolder, getElPrefix, getField, getFullBeanName, getGeneratedProperty, getGenericType, getGetter, getJacksonField, getMetaAnnotation, getMetaAnnotationFormula, getMetaAnnotations, getMetaAnnotationSize, getMetaAnnotationWhere, getName, getOwningType, getPropertyIndex, getPropertyType, getRawAggregation, getScalarType, getSecondaryTable, getSecondaryTableJoin, getSecondaryTableJoinPrefix, getSetter, getSortOverride, getSqlFormulaJoin, getSqlFormulaSelect, initMetaAnnotations, isAggregation, isDbEncrypted, isDbInsertable, isDbRead, isDbUpdateable, isDiscriminator, isDraft, isDraftDirty, isDraftOnly, isDraftReset, isEmbedded, isExcludedFromHistory, isFetchEager, isId, isIdClass, isImportedPrimaryKey, isJsonDeserialize, isJsonSerialize, isLob, isLocal, isLocalEncrypted, isNaturalKey, isNullable, isSecondaryTable, isSoftDelete, isTenantId, isTransient, isUndirectionalShadow, isUnique, isUnmappedJson, isVersionColumn, parseAggregation, setAggregation, setAggregationPrefix, setDbColumn, setDbColumnDefault, setDbColumnDefn, setDbComment, setDbEncryptFunction, setDbInsertable, setDbLength, setDbRead, setDbScale, setDbType, setDbUpdateable, setDocCode, setDocProperty, setDocSortable, setDraft, setDraftDirty, setDraftOnly, setDraftReset, setElementProperty, setEmbedded, setExcludedFromHistory, setFetchType, setField, setGeneratedProperty, setGetter, setId, setImportedPrimaryKey, setJsonDeserialize, setJsonSerialize, setLocalEncrypted, setName, setNullable, setOwningType, setPropertyIndex, setScalarType, setSecondaryTable, setSecondaryTableJoin, setSetter, setSoftDelete, setSortOrder, setTenantId, setTransient, setUndirectionalShadow, setUnique, setUnmappedJson, setVersionColumn, toString
-
-
-
-
Constructor Detail
-
DeployBeanPropertyAssocOne
public DeployBeanPropertyAssocOne(DeployBeanDescriptor<?> desc, Class<T> targetType)
Create the property.
-
-
Method Detail
-
getDeployEmbedded
public DeployBeanEmbedded getDeployEmbedded()
Return the deploy information specifically for the deployment of Embedded beans.
-
isCompound
public boolean isCompound()
Return true if this has multiple properties (expected for embedded id).
-
getDbColumn
public String getDbColumn()
Description copied from class:DeployBeanProperty
The database column name this is mapped to.- Overrides:
getDbColumn
in classDeployBeanProperty
-
isOneToOne
public boolean isOneToOne()
Return true if this a OneToOne property. Otherwise assumed ManyToOne.
-
setOneToOne
public void setOneToOne()
Set to true if this is a OneToOne.
-
isOneToOneExported
public boolean isOneToOneExported()
Return true if this is the exported side of a OneToOne.
-
setOneToOneExported
public void setOneToOneExported()
Set to true if this is the exported side of a OneToOne. This means it doesn't 'own' the foreign key column. A OneToMany without the many.
-
setImportedPrimaryKeyColumn
public void setImportedPrimaryKeyColumn(DeployBeanProperty primaryKey)
Set to true if this is part of the primary key.- Overrides:
setImportedPrimaryKeyColumn
in classDeployBeanProperty
-
setSqlFormula
public void setSqlFormula(String formulaSelect, String formulaJoin)
Description copied from class:DeployBeanProperty
The property is based on a formula.- Overrides:
setSqlFormula
in classDeployBeanProperty
-
setColumnPrefix
public void setColumnPrefix(String columnPrefix)
-
getColumnPrefix
public String getColumnPrefix()
-
setPrimaryKeyJoin
public void setPrimaryKeyJoin(boolean primaryKeyJoin)
Mark as PrimaryKeyJoin (we don't know which side is the export side initially).
-
isPrimaryKeyJoin
public boolean isPrimaryKeyJoin()
-
isPrimaryKeyExport
public boolean isPrimaryKeyExport()
-
setPrimaryKeyExport
public void setPrimaryKeyExport()
Set as export side of OneToOne with PrimaryKeyJoin.
-
setJoinType
public void setJoinType(boolean outerJoin)
-
setJoinColumns
public void setJoinColumns(DeployTableJoinColumn[] columns, boolean reverse)
-
-