ObjectDB Database Search

51-100 of 164 results

Query filter comparing Dates

. sql .Date  - represents date only (e.g.  2019-12-31 ). java. sql .Time  - represents time only (e.g.  23:59:59 ). java. sql .Timestamp  - represents date and time (e.g.  2019 ... . When stored in the database, or sent as a parameter in a query,  java. sql .Date  and java

dual access

dated but still works.  Is it possible to still have the SQL emitted from only the JAVA syntax?  If so is it also possible get each SQL statement before it is sent to the store?  Does objectdb only permit direct SQL coding? cpanon CP ObjectDB doesn't support SQL but JDOQL and JPQL

Calendar in Criteria Querys

temporal types: java. sql .Date - representing date with no time. java. sql .Time - representing time with no date. java. sql .Timestamp - representing both data and time. If possible, you should use these types ... java.util.List; import java. sql .Timestamp; import javax.persistence.*; import javax.persistence

javax.persistence.TemporalType

java. sql .Date Since: JPA 1.0 TIME Map as java. sql .Time Since: JPA 1.0 TIMESTAMP Map as java. sql

EntityManager.createNativeQuery(sqlString) - JPA Method

;sqlString ) Create an instance of Query for executing a native SQL statement, e.g., for update or ... of the SQL result being returned as a result of type Object[] (or a result of type Object ... the select list and default JDBC type mappings are applied. Parameters: sqlString - a native SQL query string Return: the new query instance Since: JPA 1.0

javax.persistence.EntityResult

JPA Annotation EntityResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping annotation to map the SELECT clause of a SQL query to an entity result. If this annotation is used, the SQL statement should select all of the columns that are mapped to the entity

javax.persistence.NamedNativeQuery

JPA Annotation NamedNativeQuery Target: TYPE Implemented Interfaces: Annotation Specifies a named native SQL query. Query names are scoped to the persistence unit. The NamedNativeQuery annotation ... that create query objects. Since: JPA 1.0 String query default null The SQL query string. Since: JPA

javax.persistence.MapKeyJoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to SQL generated by the provider for the column. Since: JPA 2.0

javax.persistence.MapKeyColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.MapKeyColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL to create a column of the inferred type. Since: JPA 2.0

javax.persistence.PrimaryKeyJoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.PrimaryKeyJoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. This should not be specified for a OneToOne primary key association. Defaults to the generated SQL to create a column of the inferred type. Since: JPA 1.0

javax.persistence.ColumnResult

JPA Annotation ColumnResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping annotation or ConstructorResult annotation to map a column of the SELECT list of a SQL ... ) The name of a column in the SELECT clause of a SQL query Since: JPA 1.0 Class type default void.class

javax.persistence.Column.columnDefinition

JPA Annotation Attribute in javax.persistence.Column String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL to create a column of the inferred type. Since: JPA 1.0

javax.persistence.OrderColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.OrderColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to generated SQL to create a column of the inferred type. Since: JPA 2.0

javax.persistence.DiscriminatorColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.DiscriminatorColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the discriminator column. Defaults to the provider-generated SQL to create a column of the specified discriminator type. Since: JPA 1.0

javax.persistence.DiscriminatorColumn

"" (Optional) The SQL fragment that is used when generating the DDL for the discriminator column. Defaults to the provider-generated SQL to create a column of the specified discriminator type

javax.persistence.JoinColumn.columnDefinition

JPA Annotation Attribute in javax.persistence.JoinColumn String columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL for the column. Defaults to the generated SQL for the column. Since: JPA 1.0

EntityManager.createNativeQuery(sqlString,resultSetMapping) - JPA Method

JPA Method in javax.persistence.EntityManager Query createNativeQuery (   String sqlString,    String resultSetMapping ) Create an instance of Query for executing a native SQL query. Parameters: sqlString - a native SQL query string resultSetMapping - the name

EntityManager.createNativeQuery(sqlString,resultClass) - JPA Method

JPA Method in javax.persistence.EntityManager Query createNativeQuery (   String sqlString,    Class resultClass ) Create an instance of Query for executing a native SQL query. Parameters: sqlString - a native SQL query string resultClass - the class

javax.persistence.PrimaryKeyJoinColumn

columnDefinition default "" (Optional) The SQL fragment that is used when generating the DDL ... SQL to create a column of the inferred type. Since: JPA 1.0 ForeignKey foreignKey default

combined index not used

:notNull])" eval="0.9675" variable="a" / =current-java. sql .Date)),(a.state=3)),(a.subType=3)),(a.type=0 ... ="[]" =current-java. sql .Date)),(a.state=3)),(a.subType=3)),(a.type=0)) v$1:bound(a.objectsInCharge ... ="18.3806" =current-java. sql .Date)),(a.state=3)),(a.subType=3)),(a.type=0)) v$1:bound

javax.persistence.NamedNativeQuery.query

JPA Annotation Attribute in javax.persistence.NamedNativeQuery String query default null The SQL query string. Since: JPA 1.0

javax.persistence.MapKeyJoinColumn.updatable

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.MapKeyJoinColumn.insertable

JPA Annotation Attribute in javax.persistence.MapKeyJoinColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.MapKeyColumn.updatable

JPA Annotation Attribute in javax.persistence.MapKeyColumn boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.MapKeyColumn.insertable

JPA Annotation Attribute in javax.persistence.MapKeyColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.TemporalType.TIMESTAMP

JPA Enum Constant in javax.persistence.TemporalType TIMESTAMP Map as java. sql .Timestamp Since: JPA 1.0

javax.persistence.TemporalType.TIME

JPA Enum Constant in javax.persistence.TemporalType TIME Map as java. sql .Time Since: JPA 1.0

javax.persistence.TemporalType.DATE

JPA Enum Constant in javax.persistence.TemporalType DATE Map as java. sql .Date Since: JPA 1.0

javax.persistence.ColumnResult.name

JPA Annotation Attribute in javax.persistence.ColumnResult String name default null (Required) The name of a column in the SELECT clause of a SQL query Since: JPA 1.0

javax.persistence.OrderColumn.insertable

JPA Annotation Attribute in javax.persistence.OrderColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.OrderColumn.updatable

JPA Annotation Attribute in javax.persistence.OrderColumn boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 2.0

javax.persistence.Column.updatable

JPA Annotation Attribute in javax.persistence.Column boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 1.0

javax.persistence.Column.insertable

JPA Annotation Attribute in javax.persistence.Column boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0

javax.persistence.Version

, Integer , short , Short , long , Long , java. sql .Timestamp . Example: @Version @Column(name="OPTLOCK

javax.persistence.FieldResult

JPA Annotation FieldResult Implemented Interfaces: Annotation Used in conjunction with the EntityResult annotation to map columns specified in the SELECT list of a SQL query to the properties or fields of an entity class. Example: Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o

javax.persistence.ForeignKey

the foreignKeyDefinition element should follow the SQL syntax used by the target database for foreign key constraints

javax.persistence.SqlResultSetMapping

JPA Annotation SqlResultSetMapping Target: TYPE Implemented Interfaces: Annotation Specifies the mapping of the result of a native SQL query or stored procedure. Example: Query q = em.createNativeQuery( "SELECT o.id AS order_id, " + "o.quantity AS order_quantity, " + "o.item AS order_item, " + "i

javax.persistence.NamedNativeQueries

JPA Annotation NamedNativeQueries Target: TYPE Implemented Interfaces: Annotation Specifies multiple native SQL named queries. Query names are scoped to the persistence unit. The NamedNativeQueries annotation can be applied to an entity or mapped superclass. See Also: NamedNativeQuery Since: JPA 1

javax.persistence.ConstructorResult

JPA Annotation ConstructorResult Implemented Interfaces: Annotation Used in conjunction with the SqlResultSetMapping annotation to map the SELECT clause of a SQL query to a constructor. Applies a constructor for the target class, passing in as arguments values from the specified columns

javax.persistence.JoinColumn.updatable

JPA Annotation Attribute in javax.persistence.JoinColumn boolean updatable default true (Optional) Whether the column is included in SQL UPDATE statements generated by the persistence provider. Since: JPA 1.0

javax.persistence.JoinColumn.insertable

JPA Annotation Attribute in javax.persistence.JoinColumn boolean insertable default true (Optional) Whether the column is included in SQL INSERT statements generated by the persistence provider. Since: JPA 1.0

javax.persistence.Id

. sql .Date ; java.math.BigDecimal ; java.math.BigInteger . The mapped column for the primary key

EntityManager.createNamedQuery(name) - JPA Method

JPA Method in javax.persistence.EntityManager Query createNamedQuery (   String name ) Create an instance of Query for executing a named query (in the Java Persistence query language or in native SQL ). Parameters: name - the name of a query defined in metadata Return: the new query

java 8 LocalDateTime is not working in query

Here is a self-contained sample how it should work: package test; import javax.persistence.*; import java. sql ... ; @Override         public java. sql .Timestamp convertToDatabaseColumn ... ;  return attribute == null ? null : java. sql .Timestamp.valueOf(attribute);    

PersistenceManagerFactory.supportedOptions() - JDO Method

.TransactionIsolationLevel.serializable javax.jdo.query. SQL javax.jdo.query.JDOQL The standard JDO

javax.jdo.PersistenceManagerFactory

.TransactionIsolationLevel.serializable javax.jdo.query. SQL javax.jdo.query.JDOQL The standard JDO query

javax.jdo.annotations.Column.sqlType

JDO Annotation Attribute in javax.jdo.annotations.Column String sqlType default "" SQL Type for this column. Since: JDO 2.1

javax.jdo.annotations.Column

default "" SQL Type for this column. Since: JDO 2.1 String target default "" Target column for this column

Query.setResultClass(cls) - JDO Method

BigDecimal; or the java.util class Date; or one of the java. sql classes Date, Time, or Timestamp; or

javax.jdo.Query

.util class Date; or one of the java. sql classes Date, Time, or Timestamp; or a user-defined class