use of org.dbflute.dbmeta.property.PropertyMethodFinder in project dbflute-core by dbflute.
the class AbstractDBMeta method cfi.
protected // relation name
ForeignInfo cfi(// relation name
String constraintName, // relation name
String foreignPropertyName, // DB meta
DBMeta localDbm, // DB meta
DBMeta foreignDbm, // relation attribute
Map<ColumnInfo, ColumnInfo> localForeignColumnInfoMap, // relation attribute
int relationNo, // relation attribute
Class<?> propertyAccessType, // relation type
boolean oneToOne, // relation type
boolean bizOneToOne, // relation type
boolean referrerAsOne, // relation type
boolean additionalFK, // fixed condition
String fixedCondition, // fixed condition
List<String> dynamicParameterList, // fixed condition
boolean fixedInline, // various info
String reversePropertyName, // various info
boolean canBeNullObject) {
// createForeignInfo()
final Class<?> realPt = chooseForeignPropertyAccessType(foreignDbm, propertyAccessType);
final PropertyMethodFinder propertyMethodFinder = createForeignPropertyMethodFinder();
return new ForeignInfo(constraintName, foreignPropertyName, localDbm, foreignDbm, localForeignColumnInfoMap, relationNo, realPt, oneToOne, bizOneToOne, referrerAsOne, additionalFK, fixedCondition, dynamicParameterList, fixedInline, reversePropertyName, canBeNullObject, propertyMethodFinder);
}
use of org.dbflute.dbmeta.property.PropertyMethodFinder in project dbflute-core by dbflute.
the class AbstractDBMeta method cri.
protected // relation name
ReferrerInfo cri(// relation name
String constraintName, // relation name
String referrerPropertyName, // DB meta
DBMeta localDbm, // DB meta
DBMeta referrerDbm, // relation attribute
Map<ColumnInfo, ColumnInfo> localReferrerColumnInfoMap, // relation type and various info
boolean oneToOne, // relation type and various info
String reversePropertyName) {
// createReferrerInfo()
final Class<?> propertyAccessType = chooseReferrerPropertyAccessType(referrerDbm, oneToOne);
final PropertyMethodFinder propertyMethodFinder = createReferrerPropertyMethodFinder();
return new ReferrerInfo(constraintName, referrerPropertyName, localDbm, referrerDbm, localReferrerColumnInfoMap, propertyAccessType, oneToOne, reversePropertyName, propertyMethodFinder);
}
use of org.dbflute.dbmeta.property.PropertyMethodFinder in project dbflute-core by dbflute.
the class AbstractDBMeta method cci.
protected // column name
ColumnInfo cci(// column name
String columnDbName, // column name
String columnSqlName, // column name
String columnSynonym, // column name
String columnAlias, // property info
Class<?> objectNativeType, // property info
String propertyName, // property info
Class<?> propertyAccessType, // column basic check
boolean primary, // column basic check
boolean autoIncrement, // column basic check
boolean notNull, // column type
String columnDbType, // column type
Integer columnSize, // column type
Integer decimalDigits, // column type
Integer datetimePrecision, // column type
String defaultValue, // column others
boolean commonColumn, // column others
OptimisticLockType optimisticLockType, // column others
String columnComment, // relation property
String foreignListExp, // relation property
String referrerListExp, // various info
ClassificationMeta classificationMeta, // various info
boolean canBeNullObject) {
// createColumnInfo()
final Class<?> realPt = chooseColumnPropertyAccessType(objectNativeType, propertyName, propertyAccessType);
final String delimiter = ",";
List<String> foreignPropList = null;
if (foreignListExp != null && foreignListExp.trim().length() > 0) {
foreignPropList = splitListTrimmed(foreignListExp, delimiter);
}
List<String> referrerPropList = null;
if (referrerListExp != null && referrerListExp.trim().length() > 0) {
referrerPropList = splitListTrimmed(referrerListExp, delimiter);
}
final PropertyMethodFinder propertyMethodFinder = createColumnPropertyMethodFinder();
return new ColumnInfo(this, columnDbName, columnSqlName, columnSynonym, columnAlias, objectNativeType, propertyName, realPt, primary, autoIncrement, notNull, columnDbType, columnSize, decimalDigits, datetimePrecision, defaultValue, commonColumn, optimisticLockType, columnComment, foreignPropList, referrerPropList, classificationMeta, canBeNullObject, propertyMethodFinder);
}
Aggregations