protected TableSequence getTableSequence() { if(sequence instanceof TableSequence) { return (TableSequence)sequence; } else { return (TableSequence)((DefaultSequence)sequence).getDefaultSequence(); } }
protected UnaryTableSequence getUnaryTableSequence() { if(sequence instanceof UnaryTableSequence) { return (UnaryTableSequence)sequence; } else { return (UnaryTableSequence)((DefaultSequence)sequence).getDefaultSequence(); } }
protected UnaryTableSequence getUnaryTableSequence() { if(sequence instanceof UnaryTableSequence) { return (UnaryTableSequence)sequence; } else { return (UnaryTableSequence)((DefaultSequence)sequence).getDefaultSequence(); } }
protected TableSequence getTableSequence() { if(sequence instanceof TableSequence) { return (TableSequence)sequence; } else { return (TableSequence)((DefaultSequence)sequence).getDefaultSequence(); } } }
protected TableSequence getTableSequence() { if(sequence instanceof TableSequence) { return (TableSequence)sequence; } else { return (TableSequence)((DefaultSequence)sequence).getDefaultSequence(); } }
public int getInitialValue() { if ((initialValue != 0) || (getDefaultSequence() == null)) { return initialValue; } else { return getDefaultSequence().getInitialValue(); } }
public int getPreallocationSize() { if ((size != 0) || (getDefaultSequence() == null)) { return size; } else { return getDefaultSequence().getPreallocationSize(); } }
public int getInitialValue() { if ((initialValue != 0) || (getDefaultSequence() == null)) { return initialValue; } else { return getDefaultSequence().getInitialValue(); } }
public int getPreallocationSize() { if ((size != 0) || (getDefaultSequence() == null)) { return size; } else { return getDefaultSequence().getPreallocationSize(); } }
public int getPreallocationSize() { if ((size != 0) || (getDefaultSequence() == null)) { return size; } else { return getDefaultSequence().getPreallocationSize(); } }
/** * INTERNAL: * This method is called when Sequencing object is created. * It's a chance to do initialization. */ public void onConnect() { qualifier = getDefaultSequence().getQualifier(); }
/** * PUBLIC: * Indicates that Sequence is connected. */ public boolean isConnected() { return getDefaultSequence().isConnected(); }
/** * INTERNAL: * This method is called when Sequencing object is created. * It's a chance to do initialization. */ public void onConnect() { qualifier = getDefaultSequence().getQualifier(); }
/** * PUBLIC: * Indicates that Sequence is connected. */ public boolean isConnected() { return getDefaultSequence().isConnected(); }
/** * INTERNAL: * Indicates whether several sequencing values should be acquired at a time * and be kept by TopLink. This in only possible in case sequencing numbers should * be acquired before insert (shouldAcquireValueAfterInsert()==false). * In default implementation, it is true for table sequencing and native * sequencing on Oracle platform, false for native sequencing on other platforms. */ public boolean shouldUsePreallocation() { return getDefaultSequence().shouldUsePreallocation(); }
/** * INTERNAL: * Indicates whether the existing pk value should always be overridden by the sequence. */ public boolean shouldAlwaysOverrideExistingValue(String seqName) { return this.shouldAlwaysOverrideExistingValue || getDefaultSequence().shouldAlwaysOverrideExistingValue(seqName); }
/** * INTERNAL: * Indicates whether sequencing value should be acquired after INSERT. * Note that preallocation could be used only in case sequencing values * should be acquired before insert (this method returns false). * In default implementation, it is true for table sequencing and native * sequencing on Oracle platform, false for native sequencing on other platforms. */ public boolean shouldAcquireValueAfterInsert() { return getDefaultSequence().shouldAcquireValueAfterInsert(); }
/** * INTERNAL: * Indicates whether EclipseLink should internally call beginTransaction() before * getGeneratedValue/Vector, and commitTransaction after. * In default implementation, it is true for table sequencing and * false for native sequencing. */ public boolean shouldUseTransaction() { return getDefaultSequence().shouldUseTransaction(); }
/** * INTERNAL: * This method is called when Sequencing object is created. * It's a chance to do initialization. */ protected void onConnect() { qualifier = getDefaultSequence().getQualifier(); }
/** * INTERNAL: * Indicates whether sequencing value should be acquired after INSERT. * Note that preallocation could be used only in case sequencing values * should be acquired before insert (this method returns false). * In default implementation, it is true for table sequencing and native * sequencing on Oracle platform, false for native sequencing on other platforms. */ public boolean shouldAcquireValueAfterInsert() { return getDefaultSequence().shouldAcquireValueAfterInsert(); }