public CreateSequenceVisitor(DdlGenContext ctx) { this.ctx = ctx; this.supportsSequence = ctx.getDbPlatform().getDbIdentity().isSupportsSequence(); }
public CreateSequenceVisitor(DdlGenContext ctx) { this.ctx = ctx; this.supportsSequence = ctx.getDbPlatform().getDbIdentity().isSupportsSequence(); }
public PlatformDdl(DatabasePlatform platform) { this.platform = platform; this.dbIdentity = platform.getDbIdentity(); this.dbDefaultValue = platform.getDbDefaultValue(); this.typeConverter = new PlatformTypeConverter(platform.getDbTypeMap()); }
public DropSequenceVisitor(DdlGenContext ctx) { this.ctx = ctx; this.ddlSyntax = ctx.getDdlSyntax(); this.supportsSequence = ctx.getDbPlatform().getDbIdentity().isSupportsSequence(); }
public DropSequenceVisitor(DdlGenContext ctx) { this.ctx = ctx; this.ddlSyntax = ctx.getDdlSyntax(); this.supportsSequence = ctx.getDbPlatform().getDbIdentity().isSupportsSequence(); }
public InsertMeta(DatabasePlatform dbPlatform, BeanDescriptor<?> desc, Bindable shadowFKey, BindableId id, Bindable all) { this.emptyStringToNull = dbPlatform.isTreatEmptyStringsAsNull(); this.tableName = desc.getBaseTable(); this.discriminator = getDiscriminator(desc); this.id = id; this.all = all; this.shadowFKey = shadowFKey; this.sqlWithId = genSql(false, null); // only available for single Id property if (id.isConcatenated()) { // concatenated key this.concatinatedKey = true; this.identityDbColumns = null; this.sqlNullId = null; this.supportsGetGeneratedKeys = false; this.selectLastInsertedId = null; } else { // insert sql for db identity or sequence insert this.concatinatedKey = false; this.identityDbColumns = new String[]{id.getIdentityColumn()}; this.sqlNullId = genSql(true, null); this.supportsGetGeneratedKeys = dbPlatform.getDbIdentity().isSupportsGetGeneratedKeys(); this.selectLastInsertedId = desc.getSelectLastInsertedId(); } }
public InsertMeta(DatabasePlatform dbPlatform, BeanDescriptor<?> desc, Bindable shadowFKey, BindableId id, Bindable all) { this.emptyStringToNull = dbPlatform.isTreatEmptyStringsAsNull(); this.tableName = desc.getBaseTable(); this.discriminator = getDiscriminator(desc); this.id = id; this.all = all; this.shadowFKey = shadowFKey; this.sqlWithId = genSql(false, null); // only available for single Id property if (id.isConcatenated()) { // concatenated key this.concatinatedKey = true; this.identityDbColumns = null; this.sqlNullId = null; this.supportsGetGeneratedKeys = false; this.selectLastInsertedId = null; } else { // insert sql for db identity or sequence insert this.concatinatedKey = false; this.identityDbColumns = new String[]{id.getIdentityColumn()}; this.sqlNullId = genSql(true, null); this.supportsGetGeneratedKeys = dbPlatform.getDbIdentity().isSupportsGetGeneratedKeys(); this.selectLastInsertedId = desc.getSelectLastInsertedId(); } }
} else { this.identityDbColumns = new String[]{id.getIdentityColumn()}; this.supportsGetGeneratedKeys = dbPlatform.getDbIdentity().isSupportsGetGeneratedKeys(); this.selectLastInsertedId = desc.getSelectLastInsertedId();
this.typeManager = config.getTypeManager(); this.namingConvention = config.getServerConfig().getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit(); this.deployOrmXml = config.getDeployOrmXml();
this.typeManager = config.getTypeManager(); this.namingConvention = config.getServerConfig().getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit(); this.deployOrmXml = config.getDeployOrmXml();
this.createProperties = config.getDeployCreateProperties(); this.namingConvention = serverConfig.getNamingConvention(); this.dbIdentity = config.getDatabasePlatform().getDbIdentity(); this.deplyInherit = config.getDeployInherit(); this.deployUtil = config.getDeployUtil();