public String getSequence() { return getInternal().getSequence(); }
if (idmd.getSequence() != null) str.append("\n").append(prefix).append(" sequence=\"" + idmd.getSequence() + "\"");
sequence = idmd.getSequence(); extensions = idmd.getExtensions();
/** * Method defining which value-strategy to use when the user specifies "native". * @return Should be overridden by all store managers that have other behaviour. */ public String getValueGenerationStrategyForNative(AbstractClassMetaData cmd, int absFieldNumber) { // TODO If the user has generated the schema and the column for this field is an autoincrement column then select IDENTITY if (getBooleanProperty(RDBMSPropertyNames.PROPERTY_RDBMS_LEGACY_NATIVE_VALUE_STRATEGY)) { // Use legacy process for deciding which strategy to use String sequence = null; if (absFieldNumber >= 0) { // real field sequence = cmd.getMetaDataForManagedMemberAtAbsolutePosition(absFieldNumber).getSequence(); } else { // datastore-identity surrogate field sequence = cmd.getIdentityMetaData().getSequence(); } if (dba.supportsOption(DatastoreAdapter.SEQUENCES) && sequence != null) { return ValueGenerationStrategy.SEQUENCE.toString(); } return ValueGenerationStrategy.INCREMENT.toString(); } return super.getValueGenerationStrategyForNative(cmd, absFieldNumber); }
String seqName = cmd.getIdentityMetaData().getSequence(); if (StringUtils.isWhitespace(seqName))
else if (supportsValueGenerationStrategy(ValueGenerationStrategy.SEQUENCE.toString()) && idmd != null && idmd.getSequence() != null)