public class SequenceDBSequenceBuilder extends SequenceBuilderBase
If the SequenceDB has persistence, then it can also create a sequence in the sequenceDB and apply the annotation to that. However, performance under those circumstances can vary depending on how well the persistent SequenceDB handles this.
Following the introduction of biojavax persistence is handled by
Hibernate refer to
BioSQLRichObjectBuilder
Modifier and Type | Field and Description |
---|---|
static int |
ANNOTATE_EXISTING |
static int |
CREATE_DUMMYSEQ |
static int |
CREATE_REALSEQ |
annotation, ERROR_FEATURES_PROPERTY, name, seq, uri
Constructor and Description |
---|
SequenceDBSequenceBuilder(SequenceDB db,
int mode)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addSymbols(Alphabet alpha,
Symbol[] syms,
int pos,
int len)
does nothing for now.
|
Sequence |
makeSequence()
create the sequence
|
addFeatureProperty, addProperty, addSequenceProperty, endFeature, endSequence, setName, setURI, startFeature, startSequence
public static final int ANNOTATE_EXISTING
public static final int CREATE_DUMMYSEQ
public static final int CREATE_REALSEQ
public SequenceDBSequenceBuilder(SequenceDB db, int mode)
public void addSymbols(Alphabet alpha, Symbol[] syms, int pos, int len)
addSymbols
in interface SeqIOListener
addSymbols
in class SequenceBuilderBase
alpha
- The alphabet of the symbol datasyms
- An array containing symbolspos
- The start offset of valid data within the arraylen
- The number of valid symbols in the arraypublic Sequence makeSequence() throws BioException
makeSequence
in interface SequenceBuilder
makeSequence
in class SequenceBuilderBase
BioException
Copyright © 2014 BioJava. All rights reserved.