Class TableMeta<T extends TopiaEntityEnum>
java.lang.Object
org.nuiton.topia.persistence.metadata.TableMeta<T>
- All Implemented Interfaces:
Serializable,Iterable<ColumnMeta>,MetaFilenameAware<T>
public class TableMeta<T extends TopiaEntityEnum>
extends Object
implements Serializable, Iterable<ColumnMeta>, MetaFilenameAware<T>
Define metas of a given db table.
- Since:
- 2.6.12
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<AssociationMeta<T>>List of associations of the entity.protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> Binder used to copy entities (lazy loaded).protected List<ColumnMeta>List of columns of the entity.List of dependencies (says all property with a topiaentity type)protected EntityOperator<TopiaEntity>Entity operator used in generic algorithms.protected final TType of the entity.protected booleanFields inherited from interface org.nuiton.topia.persistence.metadata.MetaFilenameAware
CSV_EXTENSION -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTableMeta(T source, TopiaEntityEnumProvider<T> typeProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidcopy(TopiaEntity source, TopiaEntity target) getAssociations(String name) protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> String[]getColumns(String columnName) Class<? extends TopiaEntity>getName()iterator()static <T extends TopiaEntityEnum>
TableMeta<T>newMeta(T entityEnum, TopiaEntityEnumProvider<T> typeProvider) prepareCreate(TopiaEntity bean, String topiaId) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
source
Type of the entity. -
columns
List of columns of the entity. -
dependencies
List of dependencies (says all property with a topiaentity type) -
associations
List of associations of the entity. -
binder
Binder used to copy entities (lazy loaded). -
operator
Entity operator used in generic algorithms. -
useNaturalIdsOrNotNulls
protected boolean useNaturalIdsOrNotNulls
-
-
Constructor Details
-
TableMeta
-
-
Method Details
-
newMeta
public static <T extends TopiaEntityEnum> TableMeta<T> newMeta(T entityEnum, TopiaEntityEnumProvider<T> typeProvider) -
getSource
- Specified by:
getSourcein interfaceMetaFilenameAware<T extends TopiaEntityEnum>
-
getName
- Specified by:
getNamein interfaceMetaFilenameAware<T extends TopiaEntityEnum>
-
getFilename
- Specified by:
getFilenamein interfaceMetaFilenameAware<T extends TopiaEntityEnum>
-
newFile
- Specified by:
newFilein interfaceMetaFilenameAware<T extends TopiaEntityEnum>
-
newWriter
- Specified by:
newWriterin interfaceMetaFilenameAware<T extends TopiaEntityEnum>
-
toString
-
getEntityType
-
getColumns
-
getColumnNamesAsArray
-
getColumnNames
-
getColumns
-
getAssociations
-
getDependencies
-
getAssociations
-
copy
-
prepareCreate
-
iterator
- Specified by:
iteratorin interfaceIterable<T extends TopiaEntityEnum>
-
newEntity
-
getBinder
-
getOperator
-