本文整理汇总了Java中org.eclipse.persistence.sessions.DatabaseSession类的典型用法代码示例。如果您正苦于以下问题:Java DatabaseSession类的具体用法?Java DatabaseSession怎么用?Java DatabaseSession使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DatabaseSession类属于org.eclipse.persistence.sessions包,在下文中一共展示了DatabaseSession类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: dropConstraints
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* Drop the table constraints from the database.
*/
public void dropConstraints(DatabaseSession session, JPAMSchemaManager schemaManager, boolean build) {
buildConstraints(schemaManager, build);
for (JPAMTableDefinition table : getTableDefinitions()) {
try {
schemaManager.dropConstraints(table);
} catch (DatabaseException exception) {
//ignore
}
}
}
开发者ID:jeddict,项目名称:jeddict,代码行数:15,代码来源:JPAMTableCreator.java
示例2: replaceTablesAndConstraints
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
protected void replaceTablesAndConstraints(JPAMSchemaManager schemaManager, DatabaseSession session, boolean createSequenceTables, boolean createSequences) {
buildConstraints(schemaManager, true);
boolean ignore = shouldIgnoreDatabaseException();
setIgnoreDatabaseException(true);
try {
dropTables(session, schemaManager, false);
} finally {
setIgnoreDatabaseException(ignore);
}
createTables(session, schemaManager, false, false, createSequenceTables, createSequences);
}
开发者ID:jeddict,项目名称:jeddict,代码行数:12,代码来源:JPAMTableCreator.java
示例3: extendTablesAndConstraints
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
protected void extendTablesAndConstraints(JPAMSchemaManager schemaManager, DatabaseSession session) {
buildConstraints(schemaManager, true);
boolean ignore = shouldIgnoreDatabaseException();
setIgnoreDatabaseException(true);
try {
extendTables(session, schemaManager, false);
} finally {
setIgnoreDatabaseException(ignore);
}
}
开发者ID:jeddict,项目名称:jeddict,代码行数:11,代码来源:JPAMTableCreator.java
示例4: OpenEJBServerPlatform
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
public OpenEJBServerPlatform(final DatabaseSession newDatabaseSession) {
super(newDatabaseSession);
try {
mBeanServer = MBeanServer.class.cast(
OpenEJBServerPlatform.class.getClassLoader().loadClass("org.apache.openejb.monitoring.LocalMBeanServer")
.getMethod("get").invoke(null));
} catch (final Exception e) {
// no-op
}
}
开发者ID:apache,项目名称:tomee,代码行数:11,代码来源:OpenEJBServerPlatform.java
示例5: OSGiTSServer
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
public OSGiTSServer(DatabaseSession newDatabaseSession) {
super(newDatabaseSession);
}
开发者ID:apache,项目名称:aries-jpa,代码行数:4,代码来源:OSGiTSServer.java
示例6: createConstraints
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* Create constraints.
*/
public void createConstraints(DatabaseSession session) {
//CR2612669
createConstraints(session, new JPAMSchemaManager(session));
}
开发者ID:jeddict,项目名称:jeddict,代码行数:8,代码来源:JPAMTableCreator.java
示例7: createTables
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* This creates the tables on the database. If the table already exists this
* will fail.
*/
public void createTables(org.eclipse.persistence.sessions.DatabaseSession session) {
//CR2612669
createTables(session, new JPAMSchemaManager(session));
}
开发者ID:jeddict,项目名称:jeddict,代码行数:9,代码来源:JPAMTableCreator.java
示例8: dropTables
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* Drop the tables from the database.
*/
public void dropTables(DatabaseSession session) {
//CR2612669
dropTables(session, new JPAMSchemaManager(session));
}
开发者ID:jeddict,项目名称:jeddict,代码行数:8,代码来源:JPAMTableCreator.java
示例9: KumuluzPlatform
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
public KumuluzPlatform(DatabaseSession newDatabaseSession) {
super(newDatabaseSession);
}
开发者ID:kumuluz,项目名称:kumuluzee,代码行数:4,代码来源:KumuluzPlatform.java
示例10: OurPlatForm
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
public OurPlatForm(DatabaseSession newDatabaseSession) {
super(newDatabaseSession);
}
开发者ID:arievanwi,项目名称:osgi.ee,代码行数:4,代码来源:OurPlatForm.java
示例11: JBossAS7ServerPlatform
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
public JBossAS7ServerPlatform(DatabaseSession newDatabaseSession) {
super(newDatabaseSession);
}
开发者ID:jipijapa,项目名称:jipijapa,代码行数:4,代码来源:JBossAS7ServerPlatform.java
示例12: replaceTables
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* Recreate the tables on the database. This will drop the tables if they
* exist and recreate them.
*/
public void replaceTables(DatabaseSession session) {
replaceTables(session, new JPAMSchemaManager(session));
}
开发者ID:jeddict,项目名称:jeddict,代码行数:8,代码来源:JPAMTableCreator.java
示例13: extendTables
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* Create or extend the tables on the database. This will alter existing
* tables to add missing fields or create the table otherwise. It will also
* create Sequences tables and objects.
*/
public void extendTables(DatabaseSession session, JPAMSchemaManager schemaManager) {
extendTablesAndConstraints(schemaManager, session);
schemaManager.createOrReplaceSequences(true, true);
}
开发者ID:jeddict,项目名称:jeddict,代码行数:10,代码来源:JPAMTableCreator.java
示例14: EclipseLinkOSGiServerPlatform
import org.eclipse.persistence.sessions.DatabaseSession; //导入依赖的package包/类
/**
* c-tor
*
* @param databaseSession
*/
public EclipseLinkOSGiServerPlatform(DatabaseSession databaseSession) {
super(databaseSession);
}
开发者ID:lburgazzoli,项目名称:lb-karaf-examples-jpa,代码行数:9,代码来源:EclipseLinkOSGiServerPlatform.java
注:本文中的org.eclipse.persistence.sessions.DatabaseSession类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论