|
exedio cope | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.exedio.cope.Model
public final class Model
| Constructor Summary | |
|---|---|
Model(int revisionNumber,
Type... types)
|
|
Model(Revision[] revisions,
Type... types)
|
|
Model(Type... types)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model(Type... types)
public Model(int revisionNumber,
Type... types)
public Model(Revision[] revisions,
Type... types)
| Method Detail |
|---|
public Map<Feature,Feature> getHiddenFeatures()
public void connect(ConnectProperties properties)
IllegalStateException - if this model has already been connected.public void disconnect()
public void flushSequences()
public boolean isRevisionEnabled()
public int getRevisionNumber()
public List<Revision> getRevisions()
public void revise()
public void reviseIfSupported()
public Map<Integer,byte[]> getRevisionLogs()
public ConnectProperties getProperties()
public Date getConnectDate()
public List<Type<?>> getTypes()
public List<Type<?>> getTypesSortedByHierarchy()
public List<Type<?>> getConcreteTypes()
public Type getType(String id)
Type.getID()public Feature getFeature(String id)
Feature.getID()public Date getInitializeDate()
public boolean supportsCheckConstraints()
public boolean supportsSequences()
public boolean supportsEmptyStrings()
If true, an empty string can be stored into a StringField
like any other string via FunctionField.set(Item,Object).
A subsequent retrieval of that string via FunctionField.get(Item)
returns an empty string.
If false, an empty string stored into a StringField is
converted to null, thus a subsequent retrieval of that string returns
null.
Up to now, only Oracle does not support empty strings.
public boolean isDatabaseLogEnabled()
public int getDatabaseLogThreshold()
public String getDatabaseLogSQL()
public void setDatabaseLog(boolean enable,
int threshold,
String sql,
PrintStream out)
public void createSchema()
public void createSchemaConstraints(EnumSet<Constraint.Type> types)
public void checkSchema()
createSchema().
RuntimeException - if something is wrong with the database.
TODO: use a more specific exception.public void checkEmptySchema()
public void dropSchema()
public void dropSchemaConstraints(EnumSet<Constraint.Type> types)
public void tearDownSchema()
public void tearDownSchemaConstraints(EnumSet<Constraint.Type> types)
public Schema getVerifiedSchema()
public Schema getSchema()
public Item getItem(String id)
throws NoSuchIDException
active objects.
NoSuchIDException - if there is no item with the given id.Item.getCopeID()public List<ModificationListener> getModificationListeners()
public int getModificationListenersCleared()
public void addModificationListener(ModificationListener listener)
public void removeModificationListener(ModificationListener listener)
public List<SequenceInfo> getSequenceInfo()
public ItemCacheInfo[] getItemCacheInfo()
public QueryCacheInfo getQueryCacheInfo()
public QueryCacheHistogram[] getQueryCacheHistogram()
public Pool.Info getConnectionPoolInfo()
public Properties getDatabaseInfo()
public ClusterListenerInfo getClusterListenerInfo()
public Transaction startTransaction()
IllegalStateException - if there is already a transaction bound
to the current thread for this modelstartTransaction(String)public Transaction startTransaction(String name)
name - a name for the transaction, useful for debugging.
This name is used in Transaction.toString().
IllegalStateException - if there is already a transaction bound
to the current thread for this modelstartTransaction()public long getNextTransactionId()
public Date getLastTransactionStartDate()
public Transaction leaveTransaction()
public void joinTransaction(Transaction tx)
public boolean hasCurrentTransaction()
public Transaction getCurrentTransaction()
IllegalStateException - if there is no cope transaction bound to current threadThread.currentThread()public void rollback()
public void rollbackIfNotCommitted()
public void commit()
public Collection<Transaction> getOpenTransactions()
Transactions
on this model.
Returns an unmodifiable snapshot of the actual data,
so iterating over the collection on a live server cannot cause
ConcurrentModificationExceptions.
public TransactionCounters getTransactionCounters()
public void clearCache()
public void checkTypeColumns()
ItemFunction.checkTypeColumn()public void checkUnsupportedConstraints()
public boolean isClusterNetworkEnabled()
public void pingClusterNetwork()
public void pingClusterNetwork(int count)
public static final boolean isLoggingEnabled()
@Deprecated public ItemCacheInfo[] getCacheInfo()
getItemCacheInfo().
@Deprecated public QueryCacheHistogram[] getCacheQueryHistogram()
getQueryCacheHistogram().
@Deprecated public QueryCacheInfo getCacheQueryInfo()
getQueryCacheInfo().
@Deprecated public int getMigrationVersion()
getRevisionNumber() instead
@Deprecated public int getMigrationRevision()
getRevisionNumber() instead
@Deprecated public boolean isMigrationSupported()
isRevisionEnabled() instead
@Deprecated public List<Revision> getMigrations()
getRevisions() instead
@Deprecated public void migrate()
revise() instead
@Deprecated public void migrateIfSupported()
reviseIfSupported() instead
@Deprecated public Map<Integer,byte[]> getMigrationLogs()
getRevisionLogs() instead
@Deprecated public int getModificationListenersRemoved()
getModificationListenersCleared() instead
@Deprecated public void setPropertiesInitially(ConnectProperties properties)
connect(ConnectProperties).
@Deprecated
public Item findByID(String id)
throws NoSuchIDException
getItem(String) instead
NoSuchIDException@Deprecated public Type findTypeByID(String id)
getType(String) instead
@Deprecated public Feature findFeatureByID(String id)
getFeature(String) instead
@Deprecated public void createDatabase()
createSchema() instead
@Deprecated public void createDatabaseConstraints(EnumSet<Constraint.Type> types)
createSchemaConstraints(EnumSet) instead
@Deprecated public void checkDatabase()
checkSchema() instead
@Deprecated public void checkEmptyDatabase()
checkEmptySchema() instead
@Deprecated public void dropDatabase()
dropSchema() instead
@Deprecated public void dropDatabaseConstraints(EnumSet<Constraint.Type> types)
dropSchemaConstraints(EnumSet) instead
@Deprecated public void tearDownDatabase()
tearDownSchema() instead
@Deprecated public void tearDownDatabaseConstraints(EnumSet<Constraint.Type> types)
tearDownSchemaConstraints(EnumSet) instead
|
Cope with Object Persistence |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||