/** * INTERNAL: */ protected ValueReadQuery buildSelectQuery() { if(this.shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(); } else { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(); } }
/** * INTERNAL: */ @Override protected ValueReadQuery buildSelectQuery() { if (this.delegateSequence != null) { return this.delegateSequence.buildSelectQuery(); } else if (shouldAcquireValueAfterInsert()) { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(); } else { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(); } }
/** * INTERNAL: */ @Override protected ValueReadQuery buildSelectQuery() { if (this.delegateSequence != null) { return this.delegateSequence.buildSelectQuery(); } else if (shouldAcquireValueAfterInsert()) { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(); } else { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(); } }
/** * INTERNAL: */ protected ValueReadQuery buildSelectQuery(String seqName, Integer size) { if(this.shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(getQualified(seqName), size); } else { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(getQualified(seqName), size); } }
/** * INTERNAL: */ @Override protected ValueReadQuery buildSelectQuery(String seqName, Integer size) { if (this.delegateSequence != null) { return this.delegateSequence.buildSelectQuery(seqName, size); } else if (shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(getQualified(seqName), size); } else { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(getQualified(seqName), size); } }
/** * INTERNAL: */ @Override protected ValueReadQuery buildSelectQuery(String seqName, Integer size) { if (this.delegateSequence != null) { return this.delegateSequence.buildSelectQuery(seqName, size); } else if (shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(getQualified(seqName), size); } else { return ((DatasourcePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(getQualified(seqName), size); } }
DatabasePlatform dbPlatform = null; try { dbPlatform = (DatabasePlatform)getDatasourcePlatform(); } catch (ClassCastException ex) { if (getSelectQuery() == null) { throw ValidationException.platformDoesNotSupportSequence(getName(), Helper.getShortClassName(getDatasourcePlatform()), Helper.getShortClassName(this)); throw ValidationException.platformDoesNotSupportSequence(getName(), Helper.getShortClassName(getDatasourcePlatform()), Helper.getShortClassName(this));
DatasourcePlatform platform = (DatasourcePlatform)getDatasourcePlatform();
DatasourcePlatform platform = (DatasourcePlatform)getDatasourcePlatform();