|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.sequences.ri.DefaultSequenceDirectory
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public class DefaultSequenceDirectory extends Object implements org.jomc.sequences.SequenceDirectory, org.jomc.sequences.SequenceOperations
SequenceDirectory reference implementation.
Specifications
'org.jomc.sequences.SequenceDirectory'
(org.jomc.sequences.SequenceDirectory)
1.0
Singleton
'org.jomc.sequences.SequenceOperations'
(org.jomc.sequences.SequenceOperations)
1.0
Singleton
Properties
defaultSequenceDirectoryCapacityLimit
"
Property of typejava.math.BigInteger
.Default capacity limit when creating new sequence directory entities and no default value is provided otherwise.
sequenceDirectoryName
"
Property of typejava.lang.String
.Name uniquely identifying the directory in a set of directories.
sequenceDirectoryNameQueryParameterName
"
Property of typejava.lang.String
.Name of a JPA query parameter denoting the name of a sequence directory entity.
sequenceNameQueryParameterName
"
Property of typejava.lang.String
.Name of a JPA query parameter denoting the name of a sequence entity.
Dependencies
EntityManager
"Dependency on'javax.persistence.EntityManager'
(javax.persistence.EntityManager)
.
Locale
"Dependency on'java.util.Locale'
(java.util.Locale)
at specification level 1.1 bound to an instance.
Logger
"Dependency on'org.jomc.logging.Logger'
(org.jomc.logging.Logger)
at specification level 1.0 bound to an instance.
SelectAllSequencesQuery
"Dependency on'javax.persistence.Query'
(javax.persistence.Query)
.
SelectSequenceCountQuery
"Dependency on'javax.persistence.Query'
(javax.persistence.Query)
.
SelectSequenceDirectoryQuery
"Dependency on'javax.persistence.Query'
(javax.persistence.Query)
.
SelectSequenceQuery
"Dependency on'javax.persistence.Query'
(javax.persistence.Query)
.
SelectSequencesQuery
"Dependency on'javax.persistence.Query'
(javax.persistence.Query)
.
SequenceChangeListener
"Dependency on'org.jomc.sequences.SequenceChangeListener'
(org.jomc.sequences.SequenceChangeListener)
at specification level 1.0 bound to an instance.
SequenceMapper
"Dependency on'org.jomc.sequences.ri.SequenceMapper'
(org.jomc.sequences.ri.SequenceMapper)
at specification level 1.0 bound to an instance.
VetoableSequenceChangeListener
"Dependency on'org.jomc.sequences.VetoableSequenceChangeListener'
(org.jomc.sequences.VetoableSequenceChangeListener)
at specification level 1.0 bound to an instance.
Messages
illegalArgumentMessage
"English: | Illegal value ''{1}'' for argument ''{0}''. |
Deutsch: | Ungültiger Wert ''{1}'' für Parameter ''{0}''. |
successfullyCreatedSequenceDirectoryMessage
"English: | Sequence directory ''{0}'' created. |
Deutsch: | Sequenzverzeichnis ''{0}'' erstellt. |
Constructor and Description |
---|
DefaultSequenceDirectory()
Creates a new DefaultSequenceDirectory instance. |
Modifier and Type | Method and Description |
---|---|
org.jomc.sequences.Sequence |
addSequence(org.jomc.sequences.Sequence sequence)
|
org.jomc.sequences.Sequence |
deleteSequence(String name,
long revision)
|
org.jomc.sequences.Sequence |
editSequence(String name,
long revision,
org.jomc.sequences.Sequence sequence)
|
protected void |
fireSequenceChange(org.jomc.sequences.Sequence oldValue,
org.jomc.sequences.Sequence newValue)
Notifies all available SequenceChangeListener s about a changed sequence. |
protected void |
fireVetoableSequenceChange(org.jomc.sequences.Sequence oldValue,
org.jomc.sequences.Sequence newValue)
Notifies all available SequenceChangeListener s about a sequence about to change. |
BigInteger |
getCapacityLimit()
|
long |
getNextSequenceValue(String sequenceName)
|
long[] |
getNextSequenceValues(String sequenceName,
int numValues)
|
org.jomc.sequences.Sequence |
getSequence(String name)
|
BigInteger |
getSequenceCount()
|
protected org.jomc.sequences.model.SequencesType |
getSequencesType(String name)
Gets a sequence directory entity for a given name. |
protected org.jomc.sequences.model.SequenceType |
getSequenceType(String name)
Gets a sequence entity for a given name. |
Set<org.jomc.sequences.Sequence> |
searchSequences(String name)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
@Generated(value="org.jomc.tools.SourceFileProcessor 1.0", comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools") public DefaultSequenceDirectory()
DefaultSequenceDirectory
instance.
Method Detail |
---|
public BigInteger getSequenceCount()
getSequenceCount
in interface org.jomc.sequences.SequenceDirectory
public BigInteger getCapacityLimit()
getCapacityLimit
in interface org.jomc.sequences.SequenceDirectory
public org.jomc.sequences.Sequence getSequence(String name)
getSequence
in interface org.jomc.sequences.SequenceDirectory
public org.jomc.sequences.Sequence addSequence(org.jomc.sequences.Sequence sequence)
addSequence
in interface org.jomc.sequences.SequenceDirectory
public org.jomc.sequences.Sequence editSequence(String name, long revision, org.jomc.sequences.Sequence sequence)
editSequence
in interface org.jomc.sequences.SequenceDirectory
public org.jomc.sequences.Sequence deleteSequence(String name, long revision)
deleteSequence
in interface org.jomc.sequences.SequenceDirectory
public Set<org.jomc.sequences.Sequence> searchSequences(String name)
searchSequences
in interface org.jomc.sequences.SequenceDirectory
public long getNextSequenceValue(String sequenceName)
getNextSequenceValue
in interface org.jomc.sequences.SequenceOperations
public long[] getNextSequenceValues(String sequenceName, int numValues)
getNextSequenceValues
in interface org.jomc.sequences.SequenceOperations
protected org.jomc.sequences.model.SequenceType getSequenceType(String name)
name
- The name of the sequence entity to return.name
, or null
if no sequence entity matching name
is found.protected org.jomc.sequences.model.SequencesType getSequencesType(String name)
name
- The name of the sequence directory entity to return.name
; if no such sequence directory entity is found, a
new entity is created.protected void fireSequenceChange(org.jomc.sequences.Sequence oldValue, org.jomc.sequences.Sequence newValue)
SequenceChangeListener
s about a changed sequence.
oldValue
- The entity having been changed or null
if newValue
got added to the directory.newValue
- The value oldValue
got changed to or null
if oldValue
got removed from
the directory.protected void fireVetoableSequenceChange(org.jomc.sequences.Sequence oldValue, org.jomc.sequences.Sequence newValue)
SequenceChangeListener
s about a sequence about to change.
oldValue
- The entity about to change or null
if newValue
is about to be added to the
directory.newValue
- The value oldValue
will change to or null
if oldValue
will be removed
from the directory.org.jomc.sequences.SequenceVetoException
- if any available SequenceChangeListener
chooses to veto the sequence
change.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |