当前位置: 首页>>代码示例>>Java>>正文


Java Dialect.getSequenceNextValString方法代码示例

本文整理汇总了Java中org.hibernate.dialect.Dialect.getSequenceNextValString方法的典型用法代码示例。如果您正苦于以下问题:Java Dialect.getSequenceNextValString方法的具体用法?Java Dialect.getSequenceNextValString怎么用?Java Dialect.getSequenceNextValString使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.hibernate.dialect.Dialect的用法示例。


在下文中一共展示了Dialect.getSequenceNextValString方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: configure

import org.hibernate.dialect.Dialect; //导入方法依赖的package包/类
@Override
public void configure(Type type, Properties params, Dialect dialect) throws MappingException {
	ObjectNameNormalizer normalizer = ( ObjectNameNormalizer ) params.get( IDENTIFIER_NORMALIZER );
	sequenceName = normalizer.normalizeIdentifierQuoting(
			ConfigurationHelper.getString( SEQUENCE, params, "hibernate_sequence" )
	);
	parameters = params.getProperty( PARAMETERS );

	if ( sequenceName.indexOf( '.' ) < 0 ) {
		final String schemaName = normalizer.normalizeIdentifierQuoting( params.getProperty( SCHEMA ) );
		final String catalogName = normalizer.normalizeIdentifierQuoting( params.getProperty( CATALOG ) );
		sequenceName = Table.qualify(
				dialect.quote( catalogName ),
				dialect.quote( schemaName ),
				dialect.quote( sequenceName )
		);
	}
	else {
		// if already qualified there is not much we can do in a portable manner so we pass it
		// through and assume the user has set up the name correctly.
	}

	this.identifierType = type;
	sql = dialect.getSequenceNextValString( sequenceName );
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:26,代码来源:SequenceGenerator.java

示例2: SequenceStructure

import org.hibernate.dialect.Dialect; //导入方法依赖的package包/类
public SequenceStructure(
		Dialect dialect,
		String sequenceName,
		int initialValue,
		int incrementSize,
		Class numberType) {
	this.sequenceName = sequenceName;
	this.initialValue = initialValue;
	this.incrementSize = incrementSize;
	this.numberType = numberType;
	sql = dialect.getSequenceNextValString( sequenceName );
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:13,代码来源:SequenceStructure.java


注:本文中的org.hibernate.dialect.Dialect.getSequenceNextValString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。