Code examples for Lockable

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
58:	registerColumnType( Types.TIME, "time" ); 
59:	registerColumnType( Types.TIMESTAMP, "timestamp" ); 
60:	//the BLOB type requires a size arguement - this defaults to 
-
74:	} 
75:	 
76:	public String getCascadeConstraintsString() { 
77:	return " cascade"; 
78:	} 
Full Snippet Info
8
CodeRank
58:	registerColumnType( Types.BIT, "bit" ); 
59:	registerColumnType( Types.BIGINT, "longint" ); 
60:	registerColumnType( Types.SMALLINT, "smallint" ); 
-
74:	} 
75:	 
76:	public String getAddColumnString() { 
77:	return "add column"; 
78:	} 
Full Snippet Info
8
CodeRank
58:	registerColumnType( Types.FLOAT, "float" ); 
59:	registerColumnType( Types.DOUBLE, "double" ); 
60:	registerColumnType( Types.DATE, "date" ); 
-
74:	registerFunction( "mod", new StandardSQLFunction( "mod", StandardBasicTypes.INTEGER ) ); 
75:	registerFunction( "least", new StandardSQLFunction("least") ); 
76:	registerFunction( "greatest", new StandardSQLFunction("greatest") ); 
77:	registerFunction( "user", new StandardSQLFunction( "user", StandardBasicTypes.STRING ) ); 
78:	registerFunction( "concat", new StandardSQLFunction( "concat", StandardBasicTypes.STRING ) ); 
-
133:	return new UpdateLockingStrategy( lockable, lockMode ); 
134:	} 
135:	else { 
136:	return new SelectLockingStrategy( lockable, lockMode ); 
137:	} 
138:	} 
139:	} 
140:	 
Full Snippet Info
8
CodeRank
65:	*/ 
66:	public void lock( 
Full Snippet Info
7
CodeRank
58:	* @author Sherry Listgarten and Max Andersen 
59:	*/ 
60:	public class TimesTenDialect extends Dialect { 
-
74:	registerColumnType( Types.TIME, "TIME" ); 
75:	registerColumnType( Types.TIMESTAMP, "TIMESTAMP" ); 
76:	registerColumnType( Types.VARBINARY, "VARBINARY($l)" ); 
77:	registerColumnType( Types.NUMERIC, "DECIMAL($p, $s)" ); 
78:	// TimesTen has no BLOB/CLOB support, but these types may be suitable 
-
133:	 
134:	public String getDropSequenceString(String sequenceName) { 
135:	return "drop sequence " + sequenceName; 
136:	} 
137:	 
138:	public String getQuerySequencesString() { 
139:	return "select NAME from sys.sequences"; 
140:	} 
141:	 
-
143:	return new OracleJoinFragment(); 
Full Snippet Info
8
CodeRank
66:	* @see org.hibernate.dialect.lock.LockingStrategy#lock 
67:	*/ 
Full Snippet Info
7
CodeRank
64:	*/ 
65:	public void lock( 
Full Snippet Info
7
CodeRank
58:	public class RDMSOS2200Dialect extends Dialect { 
59:	 
60:	private static final CoreMessageLogger LOG = Logger.getMessageLogger(CoreMessageLogger.class, RDMSOS2200Dialect.class.getName()); 
-
74:	* string is provided, plus an optional hasParenthesesIfNoArgs flag. 
75:	*/ 
76:	registerFunction( "abs", new StandardSQLFunction("abs") ); 
77:	registerFunction( "sign", new StandardSQLFunction("sign", StandardBasicTypes.INTEGER) ); 
78:	 
-
133:	registerFunction( "current_time", new NoArgSQLFunction("current_timestamp", StandardBasicTypes.TIME, false) ); 
134:	registerFunction( "current_timestamp", new NoArgSQLFunction("current_timestamp", StandardBasicTypes.TIMESTAMP, false) ); 
135:	registerFunction("curdate", new NoArgSQLFunction("curdate",StandardBasicTypes.DATE) ); 
136:	registerFunction("curtime", new NoArgSQLFunction("curtime",StandardBasicTypes.TIME) ); 
137:	registerFunction("days", new StandardSQLFunction("days",StandardBasicTypes.INTEGER) ); 
138:	registerFunction("dayofmonth", new StandardSQLFunction("dayofmonth",StandardBasicTypes.INTEGER) ); 
139:	registerFunction("dayname", new StandardSQLFunction("dayname",StandardBasicTypes.STRING) ); 
140:	registerFunction("dayofweek", new StandardSQLFunction("dayofweek",StandardBasicTypes.INTEGER) ); 
141:	registerFunction("dayofyear", new StandardSQLFunction("dayofyear",StandardBasicTypes.INTEGER) ); 
-
143:	registerFunction("last_day", new StandardSQLFunction("last_day",StandardBasicTypes.DATE) ); 
Full Snippet Info
8
CodeRank
43:	TypeTranslator typeTranslator = lockable.getFactory().getServiceRegistry().getService( TypeTranslator.class ); 
44:	this.identifierGridType = typeTranslator.getType( lockable.getIdentifierType() ); 
Full Snippet Info
4
CodeRank