/** * INTERNAL: */ protected ValueReadQuery buildSelectQuery() { if(this.shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(); } else { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(); } }
/** * INTERNAL: */ protected ValueReadQuery buildSelectQuery(String seqName, Integer size) { if(this.shouldAcquireValueAfterInsert()) { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForIdentity(seqName, size); } else { return ((DatabasePlatform)getDatasourcePlatform()).buildSelectQueryForSequenceObject(seqName, size); } }