Module io.ebean.core
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>
Property mapped to a joined bean.
-
Constructor Summary
ConstructorsConstructorDescriptionDeployBeanPropertyAssocOne(DeployBeanDescriptor<?> desc, Class<T> targetType) Create the property. -
Method Summary
Modifier and TypeMethodDescriptionThe database column name this is mapped to.Return the deploy information specifically for the deployment of Embedded beans.booleanReturn true if this has multiple properties (expected for embedded id).booleanReturn true if this a OneToOne property.booleanReturn true if this is the exported side of a OneToOne.booleanbooleanvoidsetColumnPrefix(String columnPrefix) voidsetImportedPrimaryKeyColumn(DeployBeanProperty primaryKey) Set to true if this is part of the primary key.voidsetJoinColumns(DeployTableJoinColumn[] columns, boolean reverse) voidsetJoinType(boolean outerJoin) voidSet to true if this is a OneToOne.voidSet to true if this is the exported side of a OneToOne.voidSet as export side of OneToOne with PrimaryKeyJoin.voidsetPrimaryKeyJoin(boolean primaryKeyJoin) Mark as PrimaryKeyJoin (we don't know which side is the export side initially).voidsetSqlFormula(String formulaSelect, String formulaJoin) The property is based on a formula.Methods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanPropertyAssoc
getBeanTable, getCascadeInfo, getExtraWhere, getFetchPreference, getForeignKey, getMappedBy, getTableJoin, getTargetDeploy, getTargetType, isOrphanRemoval, setBeanTable, setExtraWhere, setFetchPreference, setForeignKey, setMappedBy, setOrphanRemoval, setTargetTypeMethods inherited from class io.ebeaninternal.server.deploy.meta.DeployBeanProperty
addDbMigrationInfo, bindMaxLength, checkPrimitiveBoolean, getDbBind, getDbColumnDefaultSqlLiteral, getDbColumnDefn, getDbComment, getDbEncryptedType, getDbEncryptFunction, getDbLength, getDbMigrationInfos, getDbScale, getDbType, getDesc, getElPlaceHolder, getElPrefix, getField, getGeneratedProperty, getGenericType, getGetter, getMetaAnnotation, getMetaAnnotationFormula, getMetaAnnotations, getMetaAnnotationWhere, getMutationDetection, getName, getOwningType, getPropertyIndex, getPropertyType, getRawAggregation, getScalarType, getSecondaryTable, getSecondaryTableJoin, getSecondaryTableJoinPrefix, getSetter, getSortOverride, getSqlFormulaJoin, getSqlFormulaSelect, initMetaAnnotations, isAggregation, isDbEncrypted, isDbInsertable, isDbRead, isDbUpdateable, isDiscriminator, 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, setElementProperty, setEmbedded, setExcludedFromHistory, setFetchType, setField, setGeneratedProperty, setGetter, setId, setImportedPrimaryKey, setJsonDeserialize, setJsonSerialize, setLocalEncrypted, setMutationDetection, setName, setNullable, setOwningType, setPropertyIndex, setScalarType, setSecondaryTable, setSecondaryTableJoin, setSetter, setSoftDelete, setSortOrder, setTenantId, setTransient, setUndirectionalShadow, setUnique, setUnmappedJson, setVersionColumn, toString
-
Constructor Details
-
DeployBeanPropertyAssocOne
Create the property.
-
-
Method Details
-
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
Description copied from class:DeployBeanPropertyThe database column name this is mapped to.- Overrides:
getDbColumnin 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
Set to true if this is part of the primary key.- Overrides:
setImportedPrimaryKeyColumnin classDeployBeanProperty
-
setSqlFormula
Description copied from class:DeployBeanPropertyThe property is based on a formula.- Overrides:
setSqlFormulain classDeployBeanProperty
-
setColumnPrefix
-
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
-