public class TableMeta<T extends TopiaEntityEnum> extends Object implements Serializable, Iterable<ColumnMeta>, MetaFilenameAware<T>
Modifier and Type | Field and Description |
---|---|
protected List<AssociationMeta<T>> |
associations
List of associations of the entity.
|
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
binder
Binder used to copy entities (lazy loaded).
|
protected List<ColumnMeta> |
columns
List of columns of the entity.
|
protected Set<T> |
dependencies
List of dependencies (says all property with a topiaentity type)
|
protected EntityOperator<TopiaEntity> |
operator
Entity operator used in generic algorithms.
|
protected T |
source
Type of the entity.
|
protected boolean |
useNaturalIdsOrNotNulls |
CSV_EXTENSION
Modifier | Constructor and Description |
---|---|
protected |
TableMeta(T source,
TopiaPersistenceHelper<T> typeProvider) |
Modifier and Type | Method and Description |
---|---|
void |
copy(TopiaEntity source,
TopiaEntity target) |
List<AssociationMeta<T>> |
getAssociations() |
AssociationMeta<T> |
getAssociations(String name) |
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> |
getBinder() |
List<String> |
getColumnNames() |
String[] |
getColumnNamesAsArray() |
List<ColumnMeta> |
getColumns() |
ColumnMeta |
getColumns(String columnName) |
Set<T> |
getDependencies() |
Class<? extends TopiaEntity> |
getEntityType() |
String |
getFilename() |
String |
getName() |
EntityOperator<TopiaEntity> |
getOperator() |
T |
getSource() |
Iterator<ColumnMeta> |
iterator() |
TopiaEntity |
newEntity() |
File |
newFile(File container) |
static <T extends TopiaEntityEnum> |
newMeta(T entityEnum,
TopiaPersistenceHelper<T> typeProvider) |
Writer |
newWriter(File container) |
Map<String,Object> |
prepareCreate(TopiaEntity bean,
String topiaId) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
protected final T extends TopiaEntityEnum source
protected List<ColumnMeta> columns
protected final Set<T extends TopiaEntityEnum> dependencies
protected List<AssociationMeta<T extends TopiaEntityEnum>> associations
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> binder
protected transient EntityOperator<TopiaEntity> operator
protected boolean useNaturalIdsOrNotNulls
protected TableMeta(T source, TopiaPersistenceHelper<T> typeProvider)
public static <T extends TopiaEntityEnum> TableMeta<T> newMeta(T entityEnum, TopiaPersistenceHelper<T> typeProvider)
public T getSource()
getSource
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public String getName()
getName
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public String getFilename()
getFilename
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public File newFile(File container)
newFile
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public Writer newWriter(File container)
newWriter
in interface MetaFilenameAware<T extends TopiaEntityEnum>
public Class<? extends TopiaEntity> getEntityType()
public ColumnMeta getColumns(String columnName)
public String[] getColumnNamesAsArray()
public List<ColumnMeta> getColumns()
public List<AssociationMeta<T>> getAssociations()
public AssociationMeta<T> getAssociations(String name)
public void copy(TopiaEntity source, TopiaEntity target)
public Map<String,Object> prepareCreate(TopiaEntity bean, String topiaId)
public Iterator<ColumnMeta> iterator()
iterator
in interface Iterable<ColumnMeta>
public TopiaEntity newEntity()
protected org.nuiton.util.beans.Binder<TopiaEntity,TopiaEntity> getBinder()
public EntityOperator<TopiaEntity> getOperator()
Copyright © 2004–2022 Code Lutin. All rights reserved.