use of com.servoy.j2db.persistence.ColumnInfo in project servoy-client by Servoy.
the class DatabaseUtils method updateColumnInfo.
public static void updateColumnInfo(IPersistFactory persistFactory, Column c, ColumnInfoDef cid) throws RepositoryException {
int element_id = persistFactory.getNewElementID(null);
ColumnInfo ci = new ColumnInfo(element_id, true);
ci.setAutoEnterType(cid.autoEnterType);
ci.setAutoEnterSubType(cid.autoEnterSubType);
ci.setSequenceStepSize(cid.sequenceStepSize);
ci.setPreSequenceChars(cid.preSequenceChars);
ci.setPostSequenceChars(cid.postSequenceChars);
ci.setDefaultValue(cid.defaultValue);
ci.setLookupValue(cid.lookupValue);
ci.setDatabaseSequenceName(cid.databaseSequenceName);
ci.setTitleText(cid.titleText);
ci.setDescription(cid.description);
ci.setForeignType(cid.foreignType);
ci.setConverterName(cid.converterName);
ci.setConverterProperties(cid.converterProperties);
ci.setValidatorProperties(cid.validatorProperties);
ci.setValidatorName(cid.validatorName);
ci.setDefaultFormat(cid.defaultFormat);
ci.setElementTemplateProperties(cid.elementTemplateProperties);
ci.setDataProviderID(cid.dataProviderID);
ci.setContainsMetaData(cid.containsMetaData);
ci.setConfiguredColumnType(cid.columnType);
ci.setCompatibleColumnTypes(cid.compatibleColumnTypes);
ci.setFlags(cid.flags);
c.setDatabasePK((cid.flags & IBaseColumn.PK_COLUMN) != 0);
c.setColumnInfo(ci);
}
Aggregations